File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
from _typeshed import Incomplete , ReadableBuffer , WriteableBuffer
2
2
from collections .abc import Callable
3
- from typing import Literal , TypeVar
3
+ from typing import Any , Literal , TypeVar
4
4
5
5
import _win32typing
6
6
from win32 .lib .pywintypes import error as error
@@ -448,7 +448,9 @@ def GetOpenFileNameW(
448
448
DefExt : Incomplete | None = ...,
449
449
TemplateName : _win32typing .PyResourceId | None = ...,
450
450
) -> tuple [Incomplete , Incomplete , Incomplete ]: ...
451
- def SystemParametersInfo (Action , Param : Incomplete | None = ..., WinIni : int = ...) -> None : ...
451
+
452
+ # Any: Return type is too varied based on Action. This would require an overload for all win32con.SPI_* literals
453
+ def SystemParametersInfo (Action : int , Param : Incomplete | None = ..., WinIni : int = ...) -> Any : ...
452
454
def SetLayeredWindowAttributes (hwnd : int , Key , Alpha , Flags ) -> None : ...
453
455
def GetLayeredWindowAttributes (hwnd : int ) -> tuple [Incomplete , Incomplete , Incomplete ]: ...
454
456
def UpdateLayeredWindow (
You can’t perform that action at this time.
0 commit comments