mypy: Add an Optional in fix_unreads command.

This commit is contained in:
Greg Price 2017-09-26 13:29:38 -07:00
parent c10aca1bbf
commit 7737326cf0
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ from __future__ import print_function
import logging
import sys
from typing import Any, List, Text
from typing import Any, List, Optional, Text
from argparse import ArgumentParser
from django.core.management.base import CommandError
@ -48,7 +48,7 @@ class Command(ZulipBaseCommand):
connection.commit()
def fix_emails(self, realm, emails):
# type: (Realm, List[Text]) -> None
# type: (Optional[Realm], List[Text]) -> None
for email in emails:
try: