mypy: Add explicit Optional for default=None parameters in various files.

This commit is contained in:
neiljp (Neil Pilgrim)
2018-03-23 22:42:54 +00:00
committed by Tim Abbott
parent 9a90c225a6
commit 090b47ed19
13 changed files with 21 additions and 21 deletions

View File

@@ -113,9 +113,9 @@ def generate_random_token(length: int) -> str:
return str(base64.b16encode(os.urandom(length // 2)).decode('utf-8').lower())
def query_chunker(queries: List[Any],
id_collector: Set[int]=None,
id_collector: Optional[Set[int]]=None,
chunk_size: int=1000,
db_chunk_size: int=None) -> Iterable[Any]:
db_chunk_size: Optional[int]=None) -> Iterable[Any]:
'''
This merges one or more Django ascending-id queries into
a generator that returns chunks of chunk_size row objects