mirror of https://github.com/zulip/zulip.git
mypy: Use specific kwargs types.
This commit is contained in:
parent
d6e0960ca2
commit
db0b985e82
|
@ -52,7 +52,7 @@ def get_device_os(user_agent):
|
|||
|
||||
@receiver(user_logged_in, dispatch_uid="only_on_login")
|
||||
def email_on_new_login(sender, user, request, **kwargs):
|
||||
# type: (Any, UserProfile, Any, Any) -> None
|
||||
# type: (Any, UserProfile, Any, **Any) -> None
|
||||
|
||||
# We import here to minimize the dependencies of this module,
|
||||
# since it runs as part of `manage.py` initialization
|
||||
|
|
|
@ -24,11 +24,11 @@ class ResponseMock(object):
|
|||
self.content = content
|
||||
|
||||
def request_exception_error(http_method, final_url, data, **request_kwargs):
|
||||
# type: (Any, Any, Any, Any) -> Any
|
||||
# type: (Any, Any, Any, **Any) -> Any
|
||||
raise requests.exceptions.RequestException
|
||||
|
||||
def timeout_error(http_method, final_url, data, **request_kwargs):
|
||||
# type: (Any, Any, Any, Any) -> Any
|
||||
# type: (Any, Any, Any, **Any) -> Any
|
||||
raise requests.exceptions.Timeout
|
||||
|
||||
class MockServiceHandler(OutgoingWebhookServiceInterface):
|
||||
|
|
Loading…
Reference in New Issue