Mark first argument of __[get|set|del]attr__ as str (#9245)

This commit is contained in:
Nikita Sobolev
2022-11-22 14:06:50 +03:00
committed by GitHub
parent 3026610797
commit 18e2ae762b
53 changed files with 106 additions and 106 deletions

View File

@@ -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): ...