New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-98657: [docs] array.typecodes is a module-level attribute
#98729
Conversation
Doc/library/array.rst
Outdated
| @@ -62,6 +62,14 @@ The actual representation of values is determined by the machine architecture | |||
| (strictly speaking, by the C implementation). The actual size can be accessed | |||
| through the :attr:`itemsize` attribute. | |||
|
|
|||
| The module defines the following items: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the plural "items" here, yet it is just one? And yet the type is correctly singularized. I think we can be consistent, the singular wording looks more appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good catch!
|
Thanks for your contribution @sobolevn |
…ython#98729) * pythongh-98657: [docs] `array.typecodes` is a module-level attribute * Update array.rst
It is defined on a module-level and should be documented as such:
Typeshed definition: https://github.com/python/typeshed/blob/fd75bc21fca7d62235bdd2063ce65cdddbd40a1a/stdlib/array.pyi#L16
array.typecodesis incorrectly documented as a class attribute #98657