zerver/lib: Change use of typing.Text to str.

This commit is contained in:
Aditya Bansal
2018-05-10 22:43:36 +05:30
committed by Tim Abbott
parent 2f3b2fbf59
commit 1f9244e060
43 changed files with 233 additions and 241 deletions

View File

@@ -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":