mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-28 20:42:19 +08:00
Clean up files with former forced consistency (#4717)
Replace Text with str in Python 3 code
This commit is contained in:
7
third_party/3/six/__init__.pyi
vendored
7
third_party/3/six/__init__.pyi
vendored
@@ -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:
|
||||
|
||||
8
third_party/3/waitress/compat.pyi
vendored
8
third_party/3/waitress/compat.pyi
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user