BUG: newbyteorder
docs and typing don't agree on allowed types
#26473
Labels
newbyteorder
docs and typing don't agree on allowed types
#26473
Describe the issue:
For
numpy.dtype.newbyteorder
, https://numpy.org/doc/stable/reference/generated/numpy.dtype.newbyteorder.html lists allowable arguments as:but the typing doesn't allow 'little', 'big', or 'native':
numpy/numpy/__init__.pyi
Line 639 in 67257a7
Either the docs should be updated to match the typing, or the typing updated to match the docs.
Reproduce the code example:
Error message:
No response
Python and NumPy Versions:
1.26.4
3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:54:21) [Clang 16.0.6 ]
Runtime Environment:
No response
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: