win32gui.SystemParametersInfo
returns values but pyi says None
#13426
Labels
stubs: false positive
Type checkers report false errors
https://github.com/python/typeshed/blob/main/stubs/pywin32/win32/win32gui.pyi#L451
SystemParametersInfo
will return different types based on the variable given to it, but the pyi file says it returnsNone
. MaybeAny
would work in this case? The alternative would be to hardcode each variable which would be quite excessive.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
The text was updated successfully, but these errors were encountered: