The array.array class has been marked as generic in typeshed since 2017 (
). We just got a report on mypy (
) pointing out that the class is not subscriptable at runtime. Just like other generic standard library classes, we should make array.array subscriptable at runtime (
).
I'll make a PR.