Remove duplicate definitions in sub-classes (#8594)

This commit is contained in:
Nikita Sobolev
2022-08-26 18:10:55 +03:00
committed by GitHub
parent d91e5f0eff
commit 0259068ad6
36 changed files with 25 additions and 235 deletions

View File

@@ -344,12 +344,6 @@ class ModuleType:
@final
class GeneratorType(Generator[_T_co, _T_contra, _V_co]):
@property
def gi_code(self) -> CodeType: ...
@property
def gi_frame(self) -> FrameType: ...
@property
def gi_running(self) -> bool: ...
@property
def gi_yieldfrom(self) -> GeneratorType[_T_co, _T_contra, Any] | None: ...
if sys.version_info >= (3, 11):
@@ -359,7 +353,6 @@ class GeneratorType(Generator[_T_co, _T_contra, _V_co]):
__qualname__: str
def __iter__(self) -> GeneratorType[_T_co, _T_contra, _V_co]: ...
def __next__(self) -> _T_co: ...
def close(self) -> None: ...
def send(self, __arg: _T_contra) -> _T_co: ...
@overload
def throw(
@@ -372,12 +365,6 @@ class GeneratorType(Generator[_T_co, _T_contra, _V_co]):
class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]):
@property
def ag_await(self) -> Awaitable[Any] | None: ...
@property
def ag_frame(self) -> FrameType: ...
@property
def ag_running(self) -> bool: ...
@property
def ag_code(self) -> CodeType: ...
__name__: str
__qualname__: str
def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ...
@@ -398,14 +385,6 @@ class CoroutineType(Coroutine[_T_co, _T_contra, _V_co]):
__name__: str
__qualname__: str
@property
def cr_await(self) -> Any | None: ...
@property
def cr_code(self) -> CodeType: ...
@property
def cr_frame(self) -> FrameType: ...
@property
def cr_running(self) -> bool: ...
@property
def cr_origin(self) -> tuple[tuple[str, int, str], ...] | None: ...
if sys.version_info >= (3, 11):
@property