Skip to content

Commit

Permalink
Have win32gui.SystemParametersInfo return Any (#13438)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Jan 27, 2025
1 parent 5944a68 commit 89b49d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stubs/pywin32/win32/win32gui.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from _typeshed import Incomplete, ReadableBuffer, WriteableBuffer
from collections.abc import Callable
from typing import Literal, TypeVar
from typing import Any, Literal, TypeVar

import _win32typing
from win32.lib.pywintypes import error as error
Expand Down Expand Up @@ -448,7 +448,9 @@ def GetOpenFileNameW(
DefExt: Incomplete | None = ...,
TemplateName: _win32typing.PyResourceId | None = ...,
) -> tuple[Incomplete, Incomplete, Incomplete]: ...
def SystemParametersInfo(Action, Param: Incomplete | None = ..., WinIni: int = ...) -> None: ...

# Any: Return type is too varied based on Action. This would require an overload for all win32con.SPI_* literals
def SystemParametersInfo(Action: int, Param: Incomplete | None = ..., WinIni: int = ...) -> Any: ...
def SetLayeredWindowAttributes(hwnd: int, Key, Alpha, Flags) -> None: ...
def GetLayeredWindowAttributes(hwnd: int) -> tuple[Incomplete, Incomplete, Incomplete]: ...
def UpdateLayeredWindow(
Expand Down

0 comments on commit 89b49d2

Please sign in to comment.