Skip to content

Commit 3b378ee

Browse files
Apply suggestions from code review
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
1 parent 5cfa216 commit 3b378ee

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

stubs/pywin32/_win32typing.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ class PyConsoleScreenBuffer:
610610
def PeekConsoleInput(self, Length) -> tuple[PyINPUT_RECORD, ...]: ...
611611
def GetNumberOfConsoleInputEvents(self): ...
612612
def Close(self) -> None: ...
613-
def Detach(self): ...
613+
def Detach(self) -> int: ...
614614

615615
@disjoint_base
616616
class PyCredHandle:
@@ -929,7 +929,7 @@ class PyHDESK:
929929
def EnumDesktopWindows(self) -> tuple[int, ...]: ...
930930
def SwitchDesktop(self) -> None: ...
931931
def CloseDesktop(self) -> None: ...
932-
def Detach(self): ...
932+
def Detach(self) -> int: ...
933933

934934
class PyHDEVNOTIFY: ...
935935

@@ -1066,7 +1066,7 @@ class PyHWINSTA:
10661066
def EnumDesktops(self) -> tuple[Incomplete, ...]: ...
10671067
def SetProcessWindowStation(self) -> None: ...
10681068
def CloseWindowStation(self) -> None: ...
1069-
def Detach(self): ...
1069+
def Detach(self) -> int: ...
10701070

10711071
class PyICONINFO: ...
10721072

stubs/pywin32/win32/win32inet.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def SetUrlCacheGroupAttribute(GroupId, Attributes, GroupInfo, Flags=...) -> None
6363
def DeleteUrlCacheEntry(UrlName, /) -> None: ...
6464
def WinHttpGetDefaultProxyConfiguration(): ...
6565
def WinHttpGetIEProxyConfigForCurrentUser() -> tuple[int, str, str, str]: ...
66-
def WinHttpGetProxyForUrl(handle, url: str, options, /): ...
66+
def WinHttpGetProxyForUrl(handle: _win32typing.PyHANDLE | int | None, url: str, options: tuple[int | str | None, ...], /): ...
6767
def WinHttpOpen(lpszUserAgent: str, dwAccessType: int, lpszProxyName: str, lpszProxyBypass: str, dwFlags: int, /): ...
6868

6969
UNICODE: int

stubs/pywin32/win32/win32pdh.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def BrowseCounters(
3636
def ConnectMachine(machineName: str, /) -> str: ...
3737
def LookupPerfIndexByName(machineName: str, instanceName: str, /): ...
3838
def LookupPerfNameByIndex(machineName: str | None, index, /) -> str: ...
39-
def GetFormattedCounterArray(handle, format: int, /) -> dict[Incomplete, Incomplete]: ...
39+
def GetFormattedCounterArray(handle: _win32typing.PyHANDLE | int | None, format: int, /) -> dict[Incomplete, Incomplete]: ...
4040

4141
PDH_FMT_1000: int
4242
PDH_FMT_ANSI: int

stubs/pywin32/win32/win32ras.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RASCS_StartAuthentication: int
4949
RASCS_WaitForCallback: int
5050
RASCS_WaitForModemReset: int
5151

52-
def GetEapUserIdentity(phoneBook: str | None, entry: str, flags: int, hwnd=None, /): ...
52+
def GetEapUserIdentity(phoneBook: str | None, entry: str, flags: int, hwnd: _win32typing.PyHANDLE | int | None = None, /): ...
5353

5454
RASEAPF_Logon: int
5555
RASEAPF_NonInteractive: int

stubs/pywin32/win32comext/axdebug/axdebug.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import _win32typing
44

55
def GetStackAddress() -> int: ...
66
def GetThreadStateHandle() -> int: ...
7-
def SetThreadStateTrace(handle, func, /) -> None: ...
7+
def SetThreadStateTrace(handle: int, func, /) -> None: ...
88

99
APPBREAKFLAG_DEBUGGER_BLOCK: int
1010
APPBREAKFLAG_DEBUGGER_HALT: int

0 commit comments

Comments
 (0)