mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-14 22:21:44 +08:00
Mark first argument of __[get|set|del]attr__ as str (#9245)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user