You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given how ctypes hints are defined now, I don't understand the connection Mypy makes between the _Pointer class and the pointer function. Perhaps there's an issue in the ctypes plugin?
Bug Report
According to the
ctypes
documentation, thectypes.POINTER
factory function creates new pointer types. If those pointer types are called/instantiated without arguments, then aNULL
pointer is created.python/typeshed#8446 fixed some errors in the
ctypes
type definitions. But now, Mypy still fails to validate legal code creatingNULL
pointers.To Reproduce
Expected Behavior
The above snippet should successfully type check.
Actual Behavior
Your Environment
--pretty
mypy.ini
(and other config files): no customizations, no INI file createdThe text was updated successfully, but these errors were encountered: