From db0b985e82db382f8685a7d15c0c47dc70b44143 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Wed, 5 Jul 2017 23:21:11 -0700 Subject: [PATCH] mypy: Use specific kwargs types. --- zerver/signals.py | 2 +- zerver/tests/test_outgoing_webhook_system.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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):