diff --git a/zerver/signals.py b/zerver/signals.py index 379a9c848d..c27a02be51 100644 --- a/zerver/signals.py +++ b/zerver/signals.py @@ -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 diff --git a/zerver/tests/test_outgoing_webhook_system.py b/zerver/tests/test_outgoing_webhook_system.py index d36118078c..3a6ce572d8 100644 --- a/zerver/tests/test_outgoing_webhook_system.py +++ b/zerver/tests/test_outgoing_webhook_system.py @@ -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):