8000 DOC: Mention that `AxisError` is a `ValueError` and `IndexError` subc… · numpy/numpy@16964ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 16964ae

Browse files
BvB93seberg
andcommitted
DOC: Mention that AxisError is a ValueError and IndexError subclass
Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net>
1 parent 0270f4a commit 16964ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpy/core/_exceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ class TooHardError(RuntimeError):
124124
class AxisError(ValueError, IndexError):
125125
"""Axis supplied was invalid.
126126
127-
Raised whenever an ``axis`` parameter is specified that is larger than
127+
A `ValueError` and `IndexError` subclass raised whenever an
128+
``axis`` parameter is specified that is larger than
128129
the number of array dimensions.
129130
130131
.. versionchanged:: 1.22

0 commit comments

Comments
 (0)
0