From 220c14af6d1dedcafa6c3b69f69ed0ad8a869bcc Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Mon, 27 Apr 2026 21:12:43 +0100 Subject: use built-in type annotation for tuple in get_latest_data() --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index b136290..31414c3 100644 --- a/main.py +++ b/main.py @@ -41,7 +41,7 @@ def get_location(address: str) -> tuple[float, float]: return (result.latitude, result.longitude) -def get_latest_data() -> Tuple[pd.DataFrame, Optional[str]]: +def get_latest_data() -> tuple[pd.DataFrame, Optional[str]]: response = requests.get(ENDPOINT, headers=HEADERS, timeout=10) response.raise_for_status() return pd.read_csv(StringIO(response.text)), response.headers.get("Last-Modified") -- cgit v1.2.3