mypy: Add assertions of get_realm results when parser requires realm.

This commit is contained in:
neiljp (Neil Pilgrim)
2017-09-25 16:25:39 -07:00
committed by Greg Price
parent 7737326cf0
commit ab4cbf81f0
15 changed files with 20 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ class Command(ZulipBaseCommand):
def handle(self, *args, **options):
# type: (*Any, **str) -> None
realm = self.get_realm(options)
assert realm is not None # Should be ensured by parser
stream_to_keep = get_stream(options["stream_to_keep"], realm)
stream_to_destroy = get_stream(options["stream_to_destroy"], realm)