Skip to content

Commit c68ecd7

Browse files
authored
Bump pywin32 to 309 (#13607)
1 parent 59717f4 commit c68ecd7

File tree

10 files changed

+12265
-7386
lines changed

10 files changed

+12265
-7386
lines changed

stubs/pywin32/@tests/stubtest_allowlist_win32.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@ win32com(ext)?.axdebug.stackframe
6161
# failed to import, ImportError: cannot import name 'axdebug' from 'win32com.axdebug'
6262
win32com(ext)?.axdebug.gateways
6363
win32com(ext)?.axscript.client.debug
64+
65+
# These missing is likely an issue with the upstream build's WINVER target on 309.
66+
# Keep them in stubs as there will likely be a patch soon.
67+
# https://github.com/mhammond/pywin32/issues/2486
68+
win32com(ext)?\.shell\.shell\.\w+?

stubs/pywin32/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "308.*"
1+
version = "309.*"
22
upstream_repository = "https://github.com/mhammond/pywin32"
33

44
[tool.stubtest]

stubs/pywin32/pythoncom.pyi

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from _typeshed import Incomplete, Unused
2+
from abc import abstractmethod
23
from collections.abc import Sequence
3-
from typing import SupportsInt, overload
4+
from typing import ClassVar, SupportsInt, overload
45
from typing_extensions import TypeAlias, deprecated
56

67
import _win32typing
@@ -10,6 +11,15 @@ error: TypeAlias = com_error # noqa: Y042
1011

1112
class internal_error(Exception): ...
1213

14+
class com_record:
15+
@abstractmethod
16+
def __init__(self, /, *args, **kwargs) -> None: ...
17+
TLBID: ClassVar[str]
18+
MJVER: ClassVar[int]
19+
MNVER: ClassVar[int]
20+
LCID: ClassVar[int]
21+
GUID: ClassVar[str]
22+
1323
def CoCreateFreeThreadedMarshaler(unk: _win32typing.PyIUnknown, /) -> _win32typing.PyIUnknown: ...
1424
def CoCreateInstanceEx(
1525
clsid: _win32typing.PyIID,
@@ -60,7 +70,13 @@ def GetActiveObject(cls, /) -> _win32typing.PyIUnknown: ...
6070
def GetClassFile(fileName, /) -> _win32typing.PyIID: ...
6171
def GetFacilityString(scode, /) -> str: ...
6272
def GetRecordFromGuids(
63-
iid: _win32typing.PyIID, verMajor, verMinor, lcid, infoIID: _win32typing.PyIID, data: Incomplete | None = ..., /
73+
iid: str | _win32typing.PyIID,
74+
verMajor: int,
75+
verMinor: int,
76+
lcid: int,
77+
infoIID: str | _win32typing.PyIID,
78+
data: Incomplete | None = ...,
79+
/,
6480
): ...
6581
def GetRecordFromTypeInfo(TypeInfo: _win32typing.PyITypeInfo, /): ...
6682
def GetRunningObjectTable(reserved: int = ..., /) -> _win32typing.PyIRunningObjectTable: ...
@@ -399,6 +415,7 @@ TYPEFLAG_FPREDECLID: int
399415
TYPEFLAG_FREPLACEABLE: int
400416
TYPEFLAG_FRESTRICTED: int
401417
TYPEFLAG_FREVERSEBIND: int
418+
RecordClasses: dict[str, com_record]
402419
TypeIIDs: dict[_win32typing.PyIID, type]
403420
URL_MK_LEGACY: int
404421
URL_MK_UNIFORM: int

0 commit comments

Comments
 (0)