-
-
Notifications
You must be signed in to change notification settings - Fork 2k
ctypes.Array should be abstract #6349
Copy link
Copy link
Closed
Labels
reason: inexpressibleClosed, because this can't be expressed within the current type systemClosed, because this can't be expressed within the current type system
Metadata
Metadata
Assignees
Labels
reason: inexpressibleClosed, because this can't be expressed within the current type systemClosed, because this can't be expressed within the current type system
Fields
Give feedbackNo fields configured for issues without a type.
Right now
Arrayinctypesis a regular class:typeshed/stdlib/ctypes/__init__.pyi
Lines 269 to 271 in 5c8e68f
But, in reallity - you cannot instantiate it:
Mypy is also not happy with
Array(...)but for other reasons:Array(...)is not tested in https://github.com/python/mypy/blob/master/test-data/unit/check-ctypes.test at all