From 63142385ca45de408fa2ae35110d7bffc3c7de4e Mon Sep 17 00:00:00 2001 From: Xavier Cooney Date: Mon, 25 Dec 2017 11:22:13 +0000 Subject: [PATCH] mypy: Use Python 3 type syntax in 'send_password_reset_email.py'. --- zerver/management/commands/send_password_reset_email.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zerver/management/commands/send_password_reset_email.py b/zerver/management/commands/send_password_reset_email.py index 03f844048e..59cbafb71d 100644 --- a/zerver/management/commands/send_password_reset_email.py +++ b/zerver/management/commands/send_password_reset_email.py @@ -38,10 +38,10 @@ class Command(ZulipBaseCommand): self.send(users) - def send(self, users, subject_template_name='', email_template_name='', - use_https=True, token_generator=default_token_generator, - from_email=None, html_email_template_name=None): - # type: (List[UserProfile], str, str, bool, PasswordResetTokenGenerator, Optional[Text], Optional[str]) -> None + def send(self, users: List[UserProfile], subject_template_name: str='', + email_template_name: str='', use_https: bool=True, + token_generator: PasswordResetTokenGenerator=default_token_generator, + from_email: Optional[Text]=None, html_email_template_name: Optional[str]=None) -> None: """Sends one-use only links for resetting password to target users """