mypy: Add EmojiInfo type.

We now serialize still_url as None for non-animated emojis,
instead of omitting the field. The webapp does proper checks
for falsiness here.  The mobile app does not yet use the field
(to my knowledge).

We bump the API version here. More discussion here:

https://chat.zulip.org/#narrow/stream/378-api-design/topic/still_url/near/1302573
This commit is contained in:
Steve Howell
2021-12-29 15:16:15 +00:00
committed by Tim Abbott
parent a6201b430f
commit c04a8097f3
7 changed files with 34 additions and 15 deletions

View File

@@ -712,9 +712,7 @@ realm_emoji_type = DictType(
("source_url", str),
("deactivated", bool),
("author_id", int),
],
optional_keys=[
("still_url", str),
("still_url", OptionalType(str)),
],
)