Update typing
This commit is contained in:
parent
9ecbac5dee
commit
b880581e43
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue