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