Use typing_extensions.Self instead of _typeshed.Self (#9702)

This commit is contained in:
Alex Waygood
2023-02-15 11:32:43 +01:00
committed by GitHub
parent 8cd6d81f15
commit 7180d0223b
140 changed files with 597 additions and 610 deletions

View File

@@ -1,6 +1,6 @@
from _typeshed import Self
from collections.abc import Iterator, Mapping
from typing import Any
from typing_extensions import Self
from xml.sax import handler
def is_string(x: object) -> bool: ...
@@ -17,7 +17,7 @@ class Element:
def __getitem__(self, key: str) -> Any | None: ...
def __getattr__(self, key: str) -> Element: ...
def __hasattribute__(self, name: str) -> bool: ...
def __iter__(self: Self) -> Iterator[Self]: ...
def __iter__(self) -> Iterator[Self]: ...
def __bool__(self) -> bool: ...
__nonzero__ = __bool__
def __eq__(self, val: object) -> bool: ...