mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-08 20:43:25 +08:00
Mark first argument of __[get|set|del]attr__ as str (#9245)
This commit is contained in:
@@ -5,8 +5,8 @@ def load_source(name: str, path: str) -> dict[str, Any]: ...
|
||||
class DataProxy:
|
||||
@classmethod
|
||||
def from_data(cls, data, root=..., keypath=...): ...
|
||||
def __getattr__(self, key): ...
|
||||
def __setattr__(self, key, value) -> None: ...
|
||||
def __getattr__(self, key: str): ...
|
||||
def __setattr__(self, key: str, value) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __eq__(self, other): ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
@@ -15,7 +15,7 @@ class DataProxy:
|
||||
def __getitem__(self, key): ...
|
||||
def __contains__(self, key): ...
|
||||
def __delitem__(self, key) -> None: ...
|
||||
def __delattr__(self, name) -> None: ...
|
||||
def __delattr__(self, name: str) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
def pop(self, *args): ...
|
||||
def popitem(self): ...
|
||||
|
||||
Reference in New Issue
Block a user