Skip to content

Commit

Permalink
Correct text about what exceptions ndindex raises
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Nov 24, 2023
1 parent 91291fa commit 2c00367
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ndindex/ndindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ class NDIndexConstructor:
"""
Convert an object into an ndindex type.
Invalid indices will raise `IndexError`.
Invalid indices will raise `IndexError`, `TypeError`, or `ValueError`
(generally, the same error NumPy would raise if the index were used on an
array).
Indices are created by calling `ndindex` with getitem syntax:
Expand Down

0 comments on commit 2c00367

Please sign in to comment.