Closed
Description
array.array
objects are essentially efficient lists with a single element type. They have a size and can be iterated over, but mypy doesn't seem to know this:
floats.py:105: error: Argument 1 to "len" has incompatible type "array"; expected "Sized"
floats.py:107: error: Argument 1 to "enumerate" has incompatible type "array"; expected Iterable[<nothing>]
Metadata
Metadata
Assignees
Labels
No labels