mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
mypy: Fix strict-optional errors for test files.
Fix mypy --strict-optional errors in zerver/tests
This commit is contained in:
@@ -256,7 +256,7 @@ class POSTRequestMock(object):
|
||||
method = "POST"
|
||||
|
||||
def __init__(self, post_data, user_profile):
|
||||
# type: (Dict[str, Any], UserProfile) -> None
|
||||
# type: (Dict[str, Any], Optional[UserProfile]) -> None
|
||||
self.GET = {} # type: Dict[str, Any]
|
||||
self.POST = post_data
|
||||
self.user = user_profile
|
||||
|
||||
Reference in New Issue
Block a user