Replace 'Text' with 'str' in py3 stdlib (#5466)

This commit is contained in:
Sebastian Rittau
2021-05-16 16:10:48 +02:00
committed by GitHub
parent dbe77b6ae9
commit 6a9c89e928
49 changed files with 328 additions and 349 deletions

View File

@@ -1,4 +1,4 @@
from typing import IO, Any, Callable, Iterator, List, MutableMapping, Optional, Text, Tuple, Type, Union
from typing import IO, Any, Callable, Iterator, List, MutableMapping, Optional, Tuple, Type, Union
_Reader = Callable[[IO[bytes]], Any]
bytes_types: Tuple[Type[Any], ...]
@@ -36,7 +36,7 @@ def read_uint8(f: IO[bytes]) -> int: ...
uint8: ArgumentDescriptor
def read_stringnl(f: IO[bytes], decode: bool = ..., stripquotes: bool = ...) -> Union[bytes, Text]: ...
def read_stringnl(f: IO[bytes], decode: bool = ..., stripquotes: bool = ...) -> Union[bytes, str]: ...
stringnl: ArgumentDescriptor
@@ -44,7 +44,7 @@ def read_stringnl_noescape(f: IO[bytes]) -> str: ...
stringnl_noescape: ArgumentDescriptor
def read_stringnl_noescape_pair(f: IO[bytes]) -> Text: ...
def read_stringnl_noescape_pair(f: IO[bytes]) -> str: ...
stringnl_noescape_pair: ArgumentDescriptor
@@ -68,19 +68,19 @@ def read_bytes8(f: IO[bytes]) -> bytes: ...
bytes8: ArgumentDescriptor
def read_unicodestringnl(f: IO[bytes]) -> Text: ...
def read_unicodestringnl(f: IO[bytes]) -> str: ...
unicodestringnl: ArgumentDescriptor
def read_unicodestring1(f: IO[bytes]) -> Text: ...
def read_unicodestring1(f: IO[bytes]) -> str: ...
unicodestring1: ArgumentDescriptor
def read_unicodestring4(f: IO[bytes]) -> Text: ...
def read_unicodestring4(f: IO[bytes]) -> str: ...
unicodestring4: ArgumentDescriptor
def read_unicodestring8(f: IO[bytes]) -> Text: ...
def read_unicodestring8(f: IO[bytes]) -> str: ...
unicodestring8: ArgumentDescriptor