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

@@ -15,7 +15,7 @@ class DYNAMIC_TIME_ZONE_INFORMATION(_SimpleStruct): ...
class TimeZoneDefinition(DYNAMIC_TIME_ZONE_INFORMATION):
def __init__(self, *args, **kwargs) -> None: ...
def __getattribute__(self, attr): ...
def __getattribute__(self, attr: str): ...
@classmethod
def current(cls): ...
def set(self) -> None: ...

View File

@@ -30,15 +30,15 @@ def CastTo(ob, target, typelib: Incomplete | None = ...): ...
class Constants:
__dicts__: Incomplete
def __getattr__(self, a): ...
def __getattr__(self, a: str): ...
constants: Incomplete
class EventsProxy:
def __init__(self, ob) -> None: ...
def __del__(self) -> None: ...
def __getattr__(self, attr): ...
def __setattr__(self, attr, val) -> None: ...
def __getattr__(self, attr: str): ...
def __setattr__(self, attr: str, val) -> None: ...
def DispatchWithEvents(clsid, user_event_class): ...
def WithEvents(disp, user_event_class): ...
@@ -50,13 +50,13 @@ class DispatchBaseClass:
def __dir__(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __getattr__(self, attr): ...
def __setattr__(self, attr, value) -> None: ...
def __getattr__(self, attr: str): ...
def __setattr__(self, attr: str, value) -> None: ...
class CoClassBaseClass:
def __init__(self, oobj: Incomplete | None = ...) -> None: ...
def __getattr__(self, attr): ...
def __setattr__(self, attr, value) -> None: ...
def __getattr__(self, attr: str): ...
def __setattr__(self, attr: str, value) -> None: ...
def __maybe__call__(self, *args, **kwargs): ...
def __maybe__str__(self, *args): ...
def __maybe__int__(self, *args): ...

View File

@@ -63,7 +63,7 @@ class ADSIEnumerator:
def __call__(self, index): ...
class ADSIDispatch(win32com.client.CDispatch):
def __getattr__(self, attr): ...
def __getattr__(self, attr: str): ...
def QueryInterface(self, iid): ...
# Redefinition making "iid" optional.

View File

@@ -17,7 +17,7 @@ class OutputReflector:
writefunc: Incomplete
file: Incomplete
def __init__(self, file, writefunc) -> None: ...
def __getattr__(self, name): ...
def __getattr__(self, name: str): ...
def write(self, message) -> None: ...
g_adb: Incomplete

View File

@@ -3,4 +3,4 @@ from _typeshed import Incomplete
class Exception:
activeScriptError: Incomplete
def __init__(self, activeScriptError) -> None: ...
def __getattr__(self, attr): ...
def __getattr__(self, attr: str): ...