Skip to content

Commit 19169c1

Browse files
authored
Update pywin32 to 305 (#9153)
1 parent 8b59dfd commit 19169c1

File tree

8 files changed

+30
-6
lines changed

8 files changed

+30
-6
lines changed

stubs/pywin32/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,3 @@ win32com(ext)?.axdebug.documents
6565
win32com(ext)?.axdebug.expressions
6666
# failed to import, ModuleNotFoundError: No module named 'expressions'
6767
win32com(ext)?.axdebug.stackframe
68-
# failed to import, SystemError: CoInternetCreateSecurityManager() method: bad call flags
69-
win32com(ext)?.internet.internet

stubs/pywin32/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "304.*"
1+
version = "305.*"
22
[tool.stubtest]
33
ignore_missing_stub = false
44
# The library only works on Windows; we currently only run stubtest on Ubuntu for third-party stubs in CI.

stubs/pywin32/_win32typing.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ class PyCEHANDLE: ...
209209
class PyCERTSTORE:
210210
@property
211211
def HCERTSTORE(self): ...
212+
# Flags argument is deprecated.
213+
# The underlying function is now always called with `CERT_CLOSE_STORE_CHECK_FLAG`,
214+
# and support for this param will be dropped at some point in the future.
212215
def CertCloseStore(self, Flags: int = ...) -> None: ...
213216
def CertControlStore(self, Flags, CtrlType, CtrlPara: int) -> None: ...
214217
def CertEnumCertificatesInStore(self) -> list[PyCERT_CONTEXT]: ...

stubs/pywin32/win32/win32api.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def GetSystemTime(): ...
110110
def GetTempFileName(path: str, prefix: str, nUnique): ...
111111
def GetTempPath() -> str: ...
112112
def GetThreadLocale(): ...
113-
def GetTickCount(): ...
113+
def GetTickCount() -> int: ...
114114
def GetTimeFormat(locale, flags, time: _win32typing.PyTime, _format: str) -> str: ...
115115
def GetTimeZoneInformation(times_as_tuples: bool = ...): ...
116116
def GetVersion(): ...

stubs/pywin32/win32/win32event.pyi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ def CreateSemaphore(
88
SemaphoreAttributes: _win32typing.PySECURITY_ATTRIBUTES, InitialCount, MaximumCount, SemaphoreName
99
) -> int: ...
1010
def CreateWaitableTimer(TimerAttributes: _win32typing.PySECURITY_ATTRIBUTES, ManualReset, TimerName) -> int: ...
11+
def CreateWaitableTimerEx(
12+
__lpTimerAttributes: _win32typing.PySECURITY_ATTRIBUTES | None,
13+
__lpTimerName: str | None,
14+
__dwFlags: int,
15+
__dwDesiredAccess: int,
16+
) -> _win32typing.PyHANDLE: ...
1117
def MsgWaitForMultipleObjects(handlelist: list[int], bWaitAll, milliseconds, wakeMask): ...
1218
def MsgWaitForMultipleObjectsEx(handlelist: list[int], milliseconds, wakeMask, waitFlags): ...
1319
def OpenEvent(desiredAccess, bInheritHandle, name: str) -> int: ...
@@ -27,6 +33,8 @@ def WaitForSingleObjectEx(hHandle: int, milliseconds, bAlertable): ...
2733
def WaitForInputIdle(hProcess: int, milliseconds): ...
2834
def SignalObjectAndWait(*args, **kwargs): ... # incomplete
2935

36+
CREATE_WAITABLE_TIMER_HIGH_RESOLUTION: int
37+
CREATE_WAITABLE_TIMER_MANUAL_RESET: int
3038
EVENT_ALL_ACCESS: int
3139
EVENT_MODIFY_STATE: int
3240
INFINITE: int
@@ -44,6 +52,9 @@ QS_POSTMESSAGE: int
4452
QS_SENDMESSAGE: int
4553
QS_TIMER: int
4654
SYNCHRONIZE: int
55+
TIMER_ALL_ACCESS: int
56+
TIMER_MODIFY_STATE: int
57+
TIMER_QUERY_STATE: int
4758
WAIT_ABANDONED: int
4859
WAIT_ABANDONED_0: int
4960
WAIT_FAILED: int

stubs/pywin32/win32/win32gui.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ def EnumPropsEx(hWnd: int, EnumFunc, Param) -> None: ...
411411
def RegisterDeviceNotification(handle: int, _filter, flags) -> _win32typing.PyHDEVNOTIFY: ...
412412
def UnregisterDeviceNotification() -> None: ...
413413
def RegisterHotKey(hWnd: int, _id, Modifiers, vk) -> None: ...
414+
def GetAncestor(__hwnd: int, __gaFlags: int) -> int: ...
415+
def GetTopWindow(__hWnd: int | None) -> int: ...
414416
def ChildWindowFromPointEx(*args, **kwargs): ... # incomplete
415417
def CreateDialogIndirectParam(*args, **kwargs): ... # incomplete
416418
def DestroyAcceleratorTable(*args, **kwargs): ... # incomplete

stubs/pywin32/win32/win32pipe.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def popen2(*args, **kwargs): ... # incomplete
3939
def popen3(*args, **kwargs): ... # incomplete
4040
def popen4(*args, **kwargs): ... # incomplete
4141

42+
FILE_FLAG_FIRST_PIPE_INSTANCE: int
43+
PIPE_ACCEPT_REMOTE_CLIENTS: int
44+
PIPE_REJECT_REMOTE_CLIENTS: int
4245
NMPWAIT_NOWAIT: int
4346
NMPWAIT_USE_DEFAULT_WAIT: int
4447
NMPWAIT_WAIT_FOREVER: int

stubs/pywin32/win32comext/internet/internet.pyi

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Can't generate with stubgen because:
2-
# "SystemError: CoInternetCreateSecurityManager() method: bad call flags"
31
import _win32typing
42

53
def CoInternetCreateSecurityManager(reserved) -> _win32typing.PyIInternetSecurityManager: ...
@@ -34,6 +32,15 @@ GET_FEATURE_FROM_THREAD_INTRANET: int
3432
GET_FEATURE_FROM_THREAD_LOCALMACHINE: int
3533
GET_FEATURE_FROM_THREAD_RESTRICTED: int
3634
GET_FEATURE_FROM_THREAD_TRUSTED: int
35+
IID_IDocHostUIHandler: _win32typing.PyIID
36+
IID_IHTMLOMWindowServices: _win32typing.PyIID
37+
IID_IInternetBindInfo: _win32typing.PyIID
38+
IID_IInternetPriority: _win32typing.PyIID
39+
IID_IInternetProtocol: _win32typing.PyIID
40+
IID_IInternetProtocolInfo: _win32typing.PyIID
41+
IID_IInternetProtocolRoot: _win32typing.PyIID
42+
IID_IInternetProtocolSink: _win32typing.PyIID
43+
IID_IInternetSecurityManager: _win32typing.PyIID
3744
SET_FEATURE_IN_REGISTRY: int
3845
SET_FEATURE_ON_PROCESS: int
3946
SET_FEATURE_ON_THREAD: int

0 commit comments

Comments
 (0)