Skip to content

Commit 25a093a

Browse files
update type hints
1 parent ab67a8e commit 25a093a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sync/awsdatabricks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33
from pathlib import Path
44
from time import sleep
5-
from typing import Iterator, List, Tuple
5+
from typing import Generator, List, Tuple
66
from urllib.parse import urlparse
77

88
import boto3 as boto
@@ -481,7 +481,7 @@ def _get_ebs_volumes_for_instances(
481481
) -> List[dict]:
482482
"""Get all ebs volumes associated with a list of instance reservations"""
483483

484-
def get_chunk(instance_ids: list, chunk_size: int) -> Iterator[list]:
484+
def get_chunk(instance_ids: list[str], chunk_size: int) -> Generator[list[str]]:
485485
"""
486486
Splits the instance_ids list into chunks of size determined by chunk_size.
487487
This function exists to respect thresholds required by the call to

0 commit comments

Comments
 (0)