mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-05 01:17:39 +08:00
stdlib: Add several missing __(deep)copy__ methods (#7242)
This commit is contained in:
@@ -85,9 +85,12 @@ class Element(MutableSequence[Element]):
|
||||
def iterfind(self, path: str, namespaces: dict[str, str] | None = ...) -> Generator[Element, None, None]: ...
|
||||
def itertext(self) -> Generator[str, None, None]: ...
|
||||
def keys(self) -> KeysView[str]: ...
|
||||
# makeelement returns the type of self in Python impl, but not in C impl
|
||||
def makeelement(self, __tag: str, __attrib: dict[str, str]) -> Element: ...
|
||||
def remove(self, __subelement: Element) -> None: ...
|
||||
def set(self, __key: str, __value: str) -> None: ...
|
||||
def __copy__(self) -> Element: ... # returns the type of self in Python impl, but not in C impl
|
||||
def __deepcopy__(self, __memo: Any) -> Element: ... # Only exists in C impl
|
||||
def __delitem__(self, __i: SupportsIndex | slice) -> None: ...
|
||||
@overload
|
||||
def __getitem__(self, __i: SupportsIndex) -> Element: ...
|
||||
|
||||
Reference in New Issue
Block a user