mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Delete EnumMeta.__setattr__ and EnumMeta.__delattr__ (#7388)
This commit is contained in:
@@ -91,7 +91,10 @@ class object:
|
||||
def __class__(self, __type: type[object]) -> None: ... # type: ignore # noqa: F811
|
||||
def __init__(self) -> None: ...
|
||||
def __new__(cls: type[Self]) -> Self: ...
|
||||
# N.B. `object.__setattr__` and `object.__delattr__` are heavily special-cased by type checkers.
|
||||
# Overriding them in subclasses has different semantics, even if the override has an identical signature.
|
||||
def __setattr__(self, __name: str, __value: Any) -> None: ...
|
||||
def __delattr__(self, __name: str) -> None: ...
|
||||
def __eq__(self, __o: object) -> bool: ...
|
||||
def __ne__(self, __o: object) -> bool: ...
|
||||
def __str__(self) -> str: ... # noqa Y029
|
||||
@@ -99,7 +102,6 @@ class object:
|
||||
def __hash__(self) -> int: ...
|
||||
def __format__(self, __format_spec: str) -> str: ...
|
||||
def __getattribute__(self, __name: str) -> Any: ...
|
||||
def __delattr__(self, __name: str) -> None: ...
|
||||
def __sizeof__(self) -> int: ...
|
||||
# return type of pickle methods is rather hard to express in the current type system
|
||||
# see #6661 and https://docs.python.org/3/library/pickle.html#object.__reduce__
|
||||
|
||||
Reference in New Issue
Block a user