clean python 3 specific stuff from stdlib/@python2 stubs (#5451)

This commit is contained in:
Akuli
2021-05-15 01:19:05 +03:00
committed by GitHub
parent f94d838814
commit 5ec4f06263
121 changed files with 1024 additions and 4801 deletions

View File

@@ -31,28 +31,15 @@ class WarningMessage:
lineno: int
file: Optional[TextIO]
line: Optional[str]
if sys.version_info >= (3, 6):
source: Optional[Any]
def __init__(
self,
message: Union[Warning, str],
category: Type[Warning],
filename: str,
lineno: int,
file: Optional[TextIO] = ...,
line: Optional[str] = ...,
source: Optional[Any] = ...,
) -> None: ...
else:
def __init__(
self,
message: Union[Warning, str],
category: Type[Warning],
filename: str,
lineno: int,
file: Optional[TextIO] = ...,
line: Optional[str] = ...,
) -> None: ...
def __init__(
self,
message: Union[Warning, str],
category: Type[Warning],
filename: str,
lineno: int,
file: Optional[TextIO] = ...,
line: Optional[str] = ...,
) -> None: ...
class catch_warnings:
@overload