From ddd8434a42b83923b770450386ee12672ab3c604 Mon Sep 17 00:00:00 2001 From: Avasam Date: Tue, 22 Jul 2025 04:53:18 -0400 Subject: [PATCH] Bump pywin32 to 311.* (#14437) --- stubs/pywin32/METADATA.toml | 2 +- stubs/pywin32/win32/lib/win32con.pyi | 2 ++ stubs/pywin32/win32com/client/__init__.pyi | 15 ++++++++------- stubs/pywin32/win32comext/propsys/pscon.pyi | 1 + 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/stubs/pywin32/METADATA.toml b/stubs/pywin32/METADATA.toml index 338759b1d..28be33b09 100644 --- a/stubs/pywin32/METADATA.toml +++ b/stubs/pywin32/METADATA.toml @@ -1,4 +1,4 @@ -version = "310.*" +version = "311.*" upstream_repository = "https://github.com/mhammond/pywin32" [tool.stubtest] diff --git a/stubs/pywin32/win32/lib/win32con.pyi b/stubs/pywin32/win32/lib/win32con.pyi index a64e7d157..6a7da2eb4 100644 --- a/stubs/pywin32/win32/lib/win32con.pyi +++ b/stubs/pywin32/win32/lib/win32con.pyi @@ -607,6 +607,8 @@ IDC_NO: Final = 32648 IDC_HAND: Final = 32649 IDC_APPSTARTING: Final = 32650 IDC_HELP: Final = 32651 +IDC_PIN: Final = 32671 +IDC_PERSON: Final = 32672 IMAGE_BITMAP: Final = 0 IMAGE_ICON: Final = 1 IMAGE_CURSOR: Final = 2 diff --git a/stubs/pywin32/win32com/client/__init__.pyi b/stubs/pywin32/win32com/client/__init__.pyi index c4c3f2a4e..987a842ed 100644 --- a/stubs/pywin32/win32com/client/__init__.pyi +++ b/stubs/pywin32/win32com/client/__init__.pyi @@ -1,4 +1,5 @@ -from _typeshed import Incomplete +from _typeshed import Incomplete, Unused +from collections.abc import Iterator from typing import Final from typing_extensions import TypeAlias @@ -62,12 +63,12 @@ class CoClassBaseClass: def __init__(self, oobj: Incomplete | None = ...) -> None: ... def __getattr__(self, attr: str): ... def __setattr__(self, attr: str, value) -> None: ... - def __maybe__call__(self, *args, **kwargs): ... - def __maybe__str__(self, *args): ... - def __maybe__int__(self, *args): ... - def __maybe__iter__(self): ... - def __maybe__len__(self): ... - def __maybe__bool__(self): ... + def __call__(self, *args, **kwargs): ... + def __str__(self, *args: Unused) -> str: ... # noqa: Y029 + def __int__(self, *args: Unused) -> int: ... + def __iter__(self) -> Iterator[Incomplete]: ... + def __len__(self) -> int: ... + def __bool__(self) -> bool: ... class VARIANT: varianttype: Incomplete diff --git a/stubs/pywin32/win32comext/propsys/pscon.pyi b/stubs/pywin32/win32comext/propsys/pscon.pyi index f142fe8e7..799bc0fa1 100644 --- a/stubs/pywin32/win32comext/propsys/pscon.pyi +++ b/stubs/pywin32/win32comext/propsys/pscon.pyi @@ -652,6 +652,7 @@ PKEY_Link_TargetUrl: Incomplete PKEY_Shell_SFGAOFlagsStrings: Incomplete PKEY_Software_DateLastUsed: Incomplete PKEY_Software_ProductName: Incomplete +PKEY_Software_ProductVersion: Incomplete PKEY_Sync_Comments: Incomplete PKEY_Sync_ConflictDescription: Incomplete PKEY_Sync_ConflictFirstLocation: Incomplete