summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/release/upcoming_changes/22707.improvement.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/release/upcoming_changes/22707.improvement.rst b/doc/release/upcoming_changes/22707.improvement.rst
index 95c67f1cc..1b8d4f844 100644
--- a/doc/release/upcoming_changes/22707.improvement.rst
+++ b/doc/release/upcoming_changes/22707.improvement.rst
@@ -1,9 +1,8 @@
New ``DTypePromotionError``
---------------------------
NumPy now has a new ``DTypePromotionError`` which is used when two
-dtypes cannot be promoted to a common one, for example raised by::
+dtypes cannot be promoted to a common one, for example::
np.result_type("M8[s]", np.complex128)
-Errors that occur while trying to find the correct promotion may raise a
-different error.
+raises this new exception.