mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
zerver/lib: Change use of typing.Text to str.
This commit is contained in:
committed by
Tim Abbott
parent
2f3b2fbf59
commit
1f9244e060
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from typing import Any, Dict, Optional, Text
|
||||
from typing import Any, Dict, Optional
|
||||
import ujson
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ EMOJI_TWEET = """{
|
||||
]
|
||||
}"""
|
||||
|
||||
def twitter(tweet_id: Text) -> Optional[Dict[Text, Any]]:
|
||||
def twitter(tweet_id: str) -> Optional[Dict[str, Any]]:
|
||||
if tweet_id in ["112652479837110273", "287977969287315456", "287977969287315457"]:
|
||||
return ujson.loads(NORMAL_TWEET)
|
||||
elif tweet_id == "287977969287315458":
|
||||
|
||||
Reference in New Issue
Block a user