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.
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:
POINTER(None)in ctypes is equivalent toc_void_pand is valid when ran. Minor issue but is technically a compatible type.