Skip to content

Commit

Permalink
DOC: Mention that AxisError is a ValueError and IndexError subc…
Browse files Browse the repository at this point in the history
…lass

Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net>
  • Loading branch information
BvB93 and seberg committed Jul 19, 2021
1 parent 0270f4a commit 16964ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpy/core/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ class TooHardError(RuntimeError):
class AxisError(ValueError, IndexError):
"""Axis supplied was invalid.
Raised whenever an ``axis`` parameter is specified that is larger than
A `ValueError` and `IndexError` subclass raised whenever an
``axis`` parameter is specified that is larger than
the number of array dimensions.
.. versionchanged:: 1.22
Expand Down

0 comments on commit 16964ae

Please sign in to comment.