mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-20 16:48:27 +08:00
Mark first argument of __[get|set|del]attr__ as str (#9245)
This commit is contained in:
@@ -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