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

@@ -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): ...