diff --git a/zerver/models.py b/zerver/models.py index 788ee9a2a4..b864a93dae 100644 --- a/zerver/models.py +++ b/zerver/models.py @@ -233,7 +233,7 @@ class Realm(models.Model): return "" % (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']: