Update typing
This commit is contained in:
parent
9ecbac5dee
commit
eb74ac4f40
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ def _get_domain(domain: str, token: str, api_url: str) -> requests.Response:
|
||||||
return requests.get(f"{api_url}/domains/{domain}/dns", headers=headers)
|
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:
|
with ThreadPoolExecutor(max_workers=10) as executor:
|
||||||
futures = {
|
futures = {
|
||||||
executor.submit(_get_domain, domain, token, api_url): domain
|
executor.submit(_get_domain, domain, token, api_url): domain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue