mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Replace 'Text' with 'str' in py3 stdlib (#5466)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user