mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 09:08:27 +08:00
Mark first argument of __[get|set|del]attr__ as str (#9245)
This commit is contained in:
@@ -27,7 +27,7 @@ class NamedStyle(Serialisable): # type: ignore[misc]
|
||||
hidden: bool = ...,
|
||||
xfId: Any | None = ...,
|
||||
) -> None: ...
|
||||
def __setattr__(self, attr, value) -> None: ...
|
||||
def __setattr__(self, attr: str, value) -> None: ...
|
||||
def __iter__(self): ...
|
||||
@property
|
||||
def xfId(self): ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class StyleProxy:
|
||||
def __init__(self, target) -> None: ...
|
||||
def __getattr__(self, attr): ...
|
||||
def __setattr__(self, attr, value) -> None: ...
|
||||
def __getattr__(self, attr: str): ...
|
||||
def __setattr__(self, attr: str, value) -> None: ...
|
||||
def __copy__(self): ...
|
||||
def __add__(self, other): ...
|
||||
def copy(self, **kw): ...
|
||||
|
||||
Reference in New Issue
Block a user