mirror of https://github.com/zulip/zulip.git
mypy: Fix bad type annotation
This commit is contained in:
parent
09e1136cc8
commit
dd55d5b683
|
@ -407,7 +407,7 @@ class RealmEmoji(ModelReprMixin, models.Model):
|
||||||
return u"<RealmEmoji(%s): %s %s>" % (self.realm.string_id, self.name, self.file_name)
|
return u"<RealmEmoji(%s): %s %s>" % (self.realm.string_id, self.name, self.file_name)
|
||||||
|
|
||||||
def get_realm_emoji_uncached(realm):
|
def get_realm_emoji_uncached(realm):
|
||||||
# type: (Realm) -> Dict[Text, Optional[Dict[str, Iterable[Text]]]]
|
# type: (Realm) -> Dict[Text, Dict[str, Any]]
|
||||||
d = {}
|
d = {}
|
||||||
from zerver.lib.emoji import get_emoji_url
|
from zerver.lib.emoji import get_emoji_url
|
||||||
for row in RealmEmoji.objects.filter(realm=realm).select_related('author'):
|
for row in RealmEmoji.objects.filter(realm=realm).select_related('author'):
|
||||||
|
|
Loading…
Reference in New Issue