summaryrefslogtreecommitdiff
path: root/numpy/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/exceptions.py')
-rw-r--r--numpy/exceptions.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/numpy/exceptions.py b/numpy/exceptions.py
index d2fe9257b..2f8438101 100644
--- a/numpy/exceptions.py
+++ b/numpy/exceptions.py
@@ -32,8 +32,6 @@ Exceptions
"""
-from ._utils import set_module as _set_module
-
__all__ = [
"ComplexWarning", "VisibleDeprecationWarning", "ModuleDeprecationWarning",
"TooHardError", "AxisError", "DTypePromotionError"]
@@ -46,12 +44,6 @@ if '_is_loaded' in globals():
_is_loaded = True
-# TODO: One day, we should remove the _set_module here before removing them
-# fully. Not doing it now, just to allow unpickling to work on older
-# versions for a bit. (Module exists since NumPy 1.25.)
-# This then also means that the typing stubs should be moved!
-
-
class ComplexWarning(RuntimeWarning):
"""
The warning raised when casting a complex dtype to a real dtype.
@@ -68,7 +60,7 @@ class ModuleDeprecationWarning(DeprecationWarning):
.. warning::
- This warning should not be used, since nose testing is not relvant
+ This warning should not be used, since nose testing is not relevant
anymore.
The nose tester turns ordinary Deprecation warnings into test failures.