mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
mypy: Add explicit Optional for default=None parameters in various files.
This commit is contained in:
committed by
Tim Abbott
parent
9a90c225a6
commit
090b47ed19
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user