mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 17:18:30 +08:00
Use typing_extensions.Self instead of _typeshed.Self (#9702)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user