mypy: Amend annotation of get_emoji.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-12-24 19:38:53 +00:00 committed by Tim Abbott
parent c7724c6ec4
commit 435bfb3159
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ class Realm(models.Model):
return "<Realm: %s %s>" % (self.string_id, self.id)
@cache_with_key(get_realm_emoji_cache_key, timeout=3600*24*7)
def get_emoji(self) -> Dict[Text, Optional[Dict[str, Iterable[Text]]]]:
def get_emoji(self) -> Dict[Text, Dict[str, Iterable[Text]]]:
return get_realm_emoji_uncached(self)
def get_admin_users(self) -> Sequence['UserProfile']: