diff options
| author | Alex Schofield <git@ajschof.me> | 2026-04-27 21:12:43 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2026-04-27 21:12:43 +0100 |
| commit | 220c14af6d1dedcafa6c3b69f69ed0ad8a869bcc (patch) | |
| tree | 91efb6adc38b28b8056c3bffdbed890c98efcaac /main.py | |
| parent | 3f8871ca60caeed972b49c0d84d3ca1e99cfa34f (diff) | |
| download | fuelnearme-220c14af6d1dedcafa6c3b69f69ed0ad8a869bcc.tar.gz fuelnearme-220c14af6d1dedcafa6c3b69f69ed0ad8a869bcc.zip | |
use built-in type annotation for tuple in get_latest_data()
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |
