Documentation
https://docs.python.org/3/library/array.html#array.typecodes
Is a module attribute, but the documents put it intermingled with the methods and attributes of the array.array class instead.
It looks like this definition was intended to be before the class array paragraph that starts the documentation for the class (https://docs.python.org/3/library/array.html#array.array)
Linked PRs