Fix return annotations of several methods that return self at runtime (#7070)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-01-28 17:37:49 -08:00
1 parent 749d3db815
commit 33ecb68603
8 files changed
+19 -15

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
import signal
import sys
from _typeshed import Self
from bdb import Bdb
from cmd import Cmd
from inspect import _SourceObjectType
@@ -173,4 +174,4 @@ def getsourcelines(obj: _SourceObjectType) -> tuple[list[str], int]: ...
def lasti2lineno(code: CodeType, lasti: int) -> int: ...
class _rstr(str):
def __repr__(self) -> _rstr: ...
def __repr__(self: Self) -> Self: ...