-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
stubs: false positiveType checkers report false errorsType checkers report false errors
Description
SystemParametersInfo
will return different types based on the variable given to it, but the pyi file says it returns None
. Maybe Any
would work in this case? The alternative would be to hardcode each variable which would be quite excessive.
>>> win32gui.SystemParametersInfo(win32con.SPI_GETWHEELSCROLLLINES)
5
>>> win32gui.SystemParametersInfo(win32con.SPI_GETDESKWALLPAPER)
'c:\\wallpapers\\horizontal\\3357822.jpg'
>>> win32gui.SystemParametersInfo(win32con.SPI_GETWORKAREA)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NotImplementedError: Action 48 is not supported yet
These are all the types/exceptions of the SPI_GET*
variables:
int
bool
str
tuple
dict
PyLOGFONT
NotImplementedError
And for SPI_SET*
:
None
TypeError
NotImplementedError
Metadata
Metadata
Assignees
Labels
stubs: false positiveType checkers report false errorsType checkers report false errors