Clean up files with former forced consistency (#4717)

Replace Text with str in Python 3 code
This commit is contained in:
Sebastian Rittau
2020-10-27 07:52:35 +01:00
committed by GitHub
parent 25b3004ad8
commit 4603728a15
24 changed files with 364 additions and 636 deletions

View File

@@ -18,7 +18,6 @@ from typing import (
NoReturn,
Optional,
Pattern,
Text,
Tuple,
Type,
TypeVar,
@@ -100,9 +99,9 @@ print_ = print
def with_metaclass(meta: type, *bases: type) -> type: ...
def add_metaclass(metaclass: type) -> Callable[[_T], _T]: ...
def ensure_binary(s: Union[bytes, Text], encoding: str = ..., errors: str = ...) -> bytes: ...
def ensure_str(s: Union[bytes, Text], encoding: str = ..., errors: str = ...) -> str: ...
def ensure_text(s: Union[bytes, Text], encoding: str = ..., errors: str = ...) -> Text: ...
def ensure_binary(s: Union[bytes, str], encoding: str = ..., errors: str = ...) -> bytes: ...
def ensure_str(s: Union[bytes, str], encoding: str = ..., errors: str = ...) -> str: ...
def ensure_text(s: Union[bytes, str], encoding: str = ..., errors: str = ...) -> str: ...
def python_2_unicode_compatible(klass: _T) -> _T: ...
class _LazyDescriptor:

View File

@@ -1,6 +1,6 @@
import sys
from io import TextIOWrapper
from typing import Any, Optional, Text, Tuple
from typing import Any, Optional, Tuple
PY2: bool
PY3: bool
@@ -19,9 +19,9 @@ binary_type = bytes
long = int
def unquote_bytes_to_wsgi(bytestring: bytes) -> str: ...
def text_(s: Text, encoding: str = ..., errors: str = ...) -> str: ...
def tostr(s: Text) -> str: ...
def tobytes(s: Text) -> bytes: ...
def text_(s: str, encoding: str = ..., errors: str = ...) -> str: ...
def tostr(s: str) -> str: ...
def tobytes(s: str) -> bytes: ...
exec_: Any