mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
mypy: Convert zerver/lib to use typing.Text.
This commit is contained in:
@@ -34,7 +34,7 @@ import six
|
||||
from six import text_type, binary_type
|
||||
from typing import Any, Mapping, Union, TypeVar, Text
|
||||
|
||||
NonBinaryStr = TypeVar('NonBinaryStr', str, text_type)
|
||||
NonBinaryStr = TypeVar('NonBinaryStr', str, Text)
|
||||
# This is used to represent text or native strings
|
||||
|
||||
def force_text(s, encoding='utf-8'):
|
||||
|
||||
Reference in New Issue
Block a user