summaryrefslogtreecommitdiff
path: root/numpy/exceptions.py
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Fix typos & grammer in docstrings and comments (#23503)Pratyay Banerjee2023-03-301-1/+1
|
* MAINT: Remove two TODO notes that got outdated (#22788)Sebastian Berg2022-12-131-8/+0
| | | | The first one should have been removed in gh-22735, the second an even more random find.
* DOC: Fix doc `numpy.<exception>` to `numpy.exceptions.<exception>`Sebastian Berg2022-12-061-2/+2
|
* API: Hide exceptions from the main namespaceSebastian Berg2022-12-061-6/+2
| | | | | | | | | | | | I wasn't sure if we should already start deprecating the exceptions so opted to follow up with only hiding them from `__dir__()` but still having them in `__all__` and available. This also changes their module to `numpy.exceptions`, which matters because that is how they will be pickled (it would not be possible to unpickle such an exception in an older NumPy version). Due to pickling, we could put off changing the module.
* DOC: No need to repeat "error" after DTypePromotionError and line breaksSebastian Berg2022-12-021-7/+7
|
* MAINT: Rename to DTypePromotionErrorSebastian Berg2022-12-021-7/+7
|
* DOC,TST: address review comments and improve test coverageSebastian Berg2022-12-021-6/+5
| | | | Co-authored-by: Marten van Kerkwijk <mhvk@astro.utoronto.ca>
* ENH: Add an InvalidPromotion exceptionSebastian Berg2022-12-011-3/+50
|
* Update numpy/exceptions.pySebastian Berg2022-11-301-2/+0
| | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
* DOC: Update messages to NumPy 1.25 although I hope its 2.0 :)Sebastian Berg2022-11-301-3/+3
|
* DOC: Document exceptions and warnings in the refguideSebastian Berg2022-11-301-2/+40
| | | | | AxisError did exist, but e.g. ComplexWarning wasn't even properly included.
* TYP: Modify typing stubs for new `np.exceptions` moduleSebastian Berg2022-11-301-0/+1
|
* MAINT: Move ModuleDeprecationWarning and ModuleDeprecationWarningSebastian Berg2022-11-301-1/+38
| | | | Both should now live in the "exceptions" module.
* API: Add new exceptions module and move exception exposed via numericSebastian Berg2022-11-301-0/+123
This means moving ComplexWarning, TooHardError, and AxisError.