From 623062f655f11a007103bb4a41d4dcd9a516a436 Mon Sep 17 00:00:00 2001 From: Honza Javorek Date: Sat, 28 Dec 2024 19:25:25 +0100 Subject: [PATCH] forgotten union using | --- fiobank.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fiobank.py b/fiobank.py index 108ed33..b701d0c 100644 --- a/fiobank.py +++ b/fiobank.py @@ -115,7 +115,7 @@ def __init__(self, token: str, decimal=False): stop=stop_after_attempt(3), wait=wait_random_exponential(max=2 * 60), ) - def _request(self, action: str, **params) -> dict | None: + def _request(self, action: str, **params) -> "dict | None": url_template = self.base_url + self.actions[action] url = url_template.format(token=self.token, **params)