mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
mypy: Convert more zerver/lib files to typing.Text.
This commit touches files in zerver/lib/bugdown/ and zerver/lib/webhooks.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from six import text_type
|
||||
from typing import Any, Dict, Optional
|
||||
from typing import Any, Dict, Optional, Text
|
||||
import ujson
|
||||
|
||||
|
||||
@@ -183,7 +182,7 @@ MEDIA_TWEET = """{
|
||||
|
||||
|
||||
def twitter(tweet_id):
|
||||
# type: (text_type) -> Optional[Dict[text_type, Any]]
|
||||
# type: (Text) -> Optional[Dict[Text, Any]]
|
||||
if tweet_id in ["112652479837110273", "287977969287315456", "287977969287315457"]:
|
||||
return ujson.loads(NORMAL_TWEET)
|
||||
elif tweet_id == "287977969287315458":
|
||||
|
||||
Reference in New Issue
Block a user