mypy: Use specific kwargs types.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-07-05 23:21:11 -07:00 committed by Tim Abbott
parent d6e0960ca2
commit db0b985e82
2 changed files with 3 additions and 3 deletions

View File

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

View File

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