Closed
Description
With type checkers (PyCharm's, MyPy) I get the error:
mypy_test.py:6: error: Argument 1 to "POINTER" has incompatible type "None"; expected "type[Never]" [arg-type]
Using this simple example:
from ctypes import POINTER
void = None
POINTER(void)
POINTER(None)
in ctypes is equivalent to c_void_p
and is valid when ran. Minor issue but is technically a compatible type.