mypy: Fix strict-optional errors for test files.

Fix mypy --strict-optional errors in zerver/tests
This commit is contained in:
umkay
2017-05-23 19:21:29 -07:00
committed by Tim Abbott
parent 17328a7557
commit ccc70445d6
16 changed files with 51 additions and 40 deletions

View File

@@ -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