mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 11:33:51 +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
@@ -90,7 +90,7 @@ def check_list(sub_validator: Optional[Validator], length: Optional[int]=None) -
|
||||
return f
|
||||
|
||||
def check_dict(required_keys: Iterable[Tuple[str, Validator]]=[],
|
||||
value_validator: Validator=None,
|
||||
value_validator: Optional[Validator]=None,
|
||||
_allow_only_listed_keys: bool=False) -> Validator:
|
||||
def f(var_name: str, val: object) -> Optional[str]:
|
||||
if not isinstance(val, dict):
|
||||
|
||||
Reference in New Issue
Block a user