Skip to content

Commit c27faff

Browse files
committed
Changes tuple and list type hints to align with python 3.8.
1 parent 92073bb commit c27faff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

grc_price_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import random
2-
from typing import Union
2+
from typing import Union, List, Tuple
33

44
import requests
55
from bs4 import BeautifulSoup
@@ -21,7 +21,7 @@
2121

2222
GRC_PRICE_URLS = ("https://www.bybit.com/en/coin-price/gridcoin-research/", "https://coinstats.app/coins/gridcoin/", "https://marketcapof.com/crypto/gridcoin-research/")
2323

24-
def parse_grc_price_soup(url: str, price_soup: str) -> tuple[Union[float, None], str, str]:
24+
def parse_grc_price_soup(url: str, price_soup: str) -> Tuple[Union[float, None], str, str]:
2525
float_price = None
2626
info_message = ""
2727
url_message = ""
@@ -73,7 +73,7 @@ def parse_grc_price_soup(url: str, price_soup: str) -> tuple[Union[float, None],
7373
return float_price, url_message, info_message
7474

7575

76-
def get_grc_price_from_sites() -> tuple[Union[float, None], str, list, list, list]:
76+
def get_grc_price_from_sites() -> Tuple[Union[float, None], str, List[str], List[str], List[str]]:
7777
headers = requests.utils.default_headers()
7878
headers["User-Agent"] = random.choice(AGENTS)
7979
found_prices = []

0 commit comments

Comments
 (0)