diff --git a/stubs/pywin32/METADATA.toml b/stubs/pywin32/METADATA.toml index 338759b1d81b..28be33b09720 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 a64e7d157553..6a7da2eb4913 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 c4c3f2a4e1ad..987a842edbec 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 f142fe8e7c6f..799bc0fa1382 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