mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-12 08:00:12 +08:00
Replace 'Text' with 'str' in py3 stdlib (#5466)
This commit is contained in:
1 parent
dbe77b6ae9
commit
6a9c89e928
49 files changed
+328
-349
No files matched your search
+3
-4
@@ -13,7 +13,6 @@ from typing import (
|
||||
MutableMapping,
|
||||
NoReturn,
|
||||
Optional,
|
||||
Text,
|
||||
Tuple,
|
||||
Type,
|
||||
Union,
|
||||
@@ -28,7 +27,7 @@ __version__: str
|
||||
__credits__: str
|
||||
|
||||
def pathdirs() -> List[str]: ...
|
||||
def getdoc(object: object) -> Text: ...
|
||||
def getdoc(object: object) -> str: ...
|
||||
def splitdoc(doc: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
||||
def classname(object: object, modname: str) -> str: ...
|
||||
def isdata(object: object) -> bool: ...
|
||||
@@ -74,8 +73,8 @@ class HTMLRepr(Repr):
|
||||
def escape(self, text: str) -> str: ...
|
||||
def repr(self, object: object) -> str: ...
|
||||
def repr1(self, x: object, level: complex) -> str: ...
|
||||
def repr_string(self, x: Text, level: complex) -> str: ...
|
||||
def repr_str(self, x: Text, level: complex) -> str: ...
|
||||
def repr_string(self, x: str, level: complex) -> str: ...
|
||||
def repr_str(self, x: str, level: complex) -> str: ...
|
||||
def repr_instance(self, x: object, level: complex) -> str: ...
|
||||
def repr_unicode(self, x: AnyStr, level: complex) -> str: ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user