mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
Mark first argument of __[get|set|del]attr__ as str (#9245)
This commit is contained in:
1 parent
3026610797
commit
18e2ae762b
53 files changed
+106
-106
No files matched your search
@@ -4,6 +4,6 @@ class Stat:
|
||||
h: Any
|
||||
bands: Any
|
||||
def __init__(self, image_or_list, mask: Any | None = ...) -> None: ...
|
||||
def __getattr__(self, id): ...
|
||||
def __getattr__(self, id: str): ...
|
||||
|
||||
Global = Stat
|
||||
@@ -48,8 +48,8 @@ class PdfArray(list[Any]):
|
||||
def __bytes__(self) -> bytes: ...
|
||||
|
||||
class PdfDict(collections.UserDict[bytes, Any]):
|
||||
def __setattr__(self, key, value) -> None: ...
|
||||
def __getattr__(self, key): ...
|
||||
def __setattr__(self, key: str, value) -> None: ...
|
||||
def __getattr__(self, key: str): ...
|
||||
def __bytes__(self) -> bytes: ...
|
||||
|
||||
class PdfBinary:
|
||||
|
||||
Reference in new issue
Block a user