Skip to content

Commit c793d63

Browse files
authored
[pywin32] Update to 312 (#15871)
1 parent e23cae8 commit c793d63

10 files changed

Lines changed: 21 additions & 20 deletions

File tree

stubs/pywin32/@tests/stubtest_allowlist_win32.txt

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Not available at runtime. Contains type definitions that are otherwise not exposed
22
_win32typing
33

4+
# False-positive, stubtest shouldn't want to expose TYPE_CHECKING
5+
(win32\.lib\.)?pywintypes\.TYPE_CHECKING
6+
47
# PyWin tool / debugger
58
pythonwin.start_pythonwin
69
pythonwin.pywin.*
@@ -28,29 +31,21 @@ win32com(ext)?.axscript.client.scriptdispatch
2831
win32com.demos.*
2932
win32com.servers.test_pycomtest
3033
win32com.test.*
31-
win32com(ext)?.axdebug.codecontainer
3234
win32com(ext)?.axdebug.dump
33-
win32com(ext)?.axdebug.debugger
3435
win32com(ext)?.axscript.client.pydumper
3536
win32com(ext)?.directsound.test.*
3637

3738
# Deprecated and makes a buffer of random junk. Use something like `b"\x00" * bufferSize` instead
3839
# It's safer to not even expose this method as deprecated.
3940
(win32.)?win32gui.PyMakeBuffer
4041

41-
# Axdebug is not built on Python 3.11 anyway: https://github.com/mhammond/pywin32/blob/c0f06cf49252b4848d0c74832247280291b00b03/setup.py#L386-L390
42-
#
4342
# failed to import, ImportError: DLL load failed while importing axdebug: The specified module could not be found.
43+
win32com(ext)?.axdebug.adb
4444
win32com(ext)?.axdebug.axdebug
4545
win32com(ext)?.axdebug.codecontainer
46-
# failed to import, ModuleNotFoundError: No module named 'gateways'
4746
win32com(ext)?.axdebug.contexts
48-
# failed to import, ModuleNotFoundError: No module named 'axdebug'
49-
win32com(ext)?.axdebug.adb
47+
win32com(ext)?.axdebug.debugger
5048
win32com(ext)?.axdebug.documents
5149
win32com(ext)?.axdebug.expressions
52-
# failed to import, ModuleNotFoundError: No module named 'expressions'
53-
win32com(ext)?.axdebug.stackframe
54-
# failed to import, ImportError: cannot import name 'axdebug' from 'win32com.axdebug'
5550
win32com(ext)?.axdebug.gateways
56-
win32com(ext)?.axscript.client.debug
51+
win32com(ext)?.axdebug.stackframe

stubs/pywin32/METADATA.toml

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

44
[tool.stubtest]

stubs/pywin32/_win32typing.pyi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6312,3 +6312,14 @@ class HTTP_FILTER_VERSION:
63126312
def Flags(self): ...
63136313
@property
63146314
def FilterDesc(self) -> str: ...
6315+
6316+
class PySYSTEM_CPU_SET_INFORMATION:
6317+
Id: int
6318+
Group: int
6319+
LogicalProcessorIndex: int
6320+
CoreIndex: int
6321+
LastLevelCacheIndex: int
6322+
NumaNodeIndex: int
6323+
EfficiencyClass: int
6324+
SchedulingClass: int
6325+
AllocationTag: int

stubs/pywin32/pythoncom.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,4 +496,5 @@ fdexPropCannotPutRef: int
496496
fdexPropCannotSourceEvents: int
497497
fdexPropDynamicType: int
498498
fdexPropNoSideEffects: int
499+
# Deprecated: Use `getattr(sys, "frozen", False)` directly instead.
499500
frozen: int

stubs/pywin32/pythonwin/win32ui.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ IDC_TABTIMMY_NONE: int
368368
IDC_VIEW_EOL: int
369369
IDC_VIEW_INDENTATIONGUIDES: int
370370
ID_VIEW_FOLD_TOPLEVEL: int
371-
UNICODE: int
372371
copyright: str
373372
dllhandle: int
374373
types: dict[str, type]

stubs/pywin32/win32/lib/win32con.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,9 +2102,6 @@ FILE_ATTRIBUTE_NOT_CONTENT_INDEXED: Final = 8192
21022102
FILE_ATTRIBUTE_ENCRYPTED: Final = 16384
21032103
FILE_ATTRIBUTE_VIRTUAL: Final = 65536
21042104

2105-
FILE_ATTRIBUTE_ATOMIC_WRITE: Final = 512
2106-
FILE_ATTRIBUTE_XACTION_WRITE: Final = 1024
2107-
21082105
FILE_NOTIFY_CHANGE_FILE_NAME: Final = 1
21092106
FILE_NOTIFY_CHANGE_DIR_NAME: Final = 2
21102107
FILE_NOTIFY_CHANGE_ATTRIBUTES: Final = 4

stubs/pywin32/win32/win32api.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def GetProfileVal(section: str, entry: str, defValue: str, iniName: str | None =
159159
def GetShortPathName(path: str, /) -> str: ...
160160
def GetStdHandle(handle: int, /) -> int: ...
161161
def GetSysColor(index: int, /) -> int: ...
162+
def GetSystemCpuSetInformation() -> list[_win32typing.PySYSTEM_CPU_SET_INFORMATION]: ...
162163
def GetSystemDefaultLangID() -> int: ...
163164
def GetSystemDefaultLCID() -> int: ...
164165
def GetSystemDirectory() -> str: ...

stubs/pywin32/win32/win32clipboard.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ CF_TEXT: Final[int]
4646
CF_TIFF: Final[int]
4747
CF_UNICODETEXT: Final[int]
4848
CF_WAVE: Final[int]
49-
UNICODE: bool

stubs/pywin32/win32/win32gui.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,5 +557,5 @@ TPM_RIGHTALIGN: int
557557
TPM_RIGHTBUTTON: int
558558
TPM_TOPALIGN: int
559559
TPM_VCENTERALIGN: int
560-
UNICODE: Literal[True]
560+
UNICODE: Literal[1]
561561
dllhandle: int

stubs/pywin32/win32comext/axdebug/codecontainer.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from _typeshed import Incomplete
22

3-
name: str
4-
53
class SourceCodeContainer:
64
sourceContext: Incomplete
75
text: Incomplete

0 commit comments

Comments
 (0)