Update typing
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/tests Pipeline was successful

This commit is contained in:
sonny 2025-01-05 17:06:04 +01:00
parent 9ecbac5dee
commit b880581e43

View file

@ -69,7 +69,9 @@ def _get_domain(domain: str, token: str, api_url: str) -> requests.Response:
return requests.get(f"{api_url}/domains/{domain}/dns", headers=headers)
def _get_domain_data(domains: list[str], token: str, api_url: str) -> Generator[dict]:
def _get_domain_data(
domains: list[str], token: str, api_url: str
) -> Generator[dict, None, None]:
with ThreadPoolExecutor(max_workers=10) as executor:
futures = {
executor.submit(_get_domain, domain, token, api_url): domain