summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-06-05 13:40:04 -0600
committerGitHub <noreply@github.com>2021-06-05 13:40:04 -0600
commitf23ade75773f5e94c030c40cae5b6e081b650205 (patch)
treec82ed80842f7339a48245545c4b509f46c7df082 /doc/source
parentffa5ece3547b6e973167aadde82f8d6b4e4380d3 (diff)
parent4353b9011d64a419c9dfa346824b82167f9ff16e (diff)
downloadnumpy-f23ade75773f5e94c030c40cae5b6e081b650205.tar.gz
Merge pull request #19170 from seberg/undo-string-promotion-warning
API: Delay string and number promotion deprecation/future warning
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/release/1.21.0-notes.rst33
1 files changed, 0 insertions, 33 deletions
diff --git a/doc/source/release/1.21.0-notes.rst b/doc/source/release/1.21.0-notes.rst
index ac65b8fd0..c0d283b72 100644
--- a/doc/source/release/1.21.0-notes.rst
+++ b/doc/source/release/1.21.0-notes.rst
@@ -82,39 +82,6 @@ The methods in question are:
Future Changes
==============
-Promotion of strings with numbers and bools is deprecated
----------------------------------------------------------
-Any promotion of numbers and strings is deprecated and will
-give a ``FutureWarning`` the main affected functionalities
-are:
-
-* `numpy.promote_types` and `numpy.result_type` which will raise
- an error in this case in the future.
-* `numpy.concatenate` will raise an error when concatenating a string
- and numeric array. You can use ``dtype="S"`` to explicitly request
- a string result.
-* `numpy.array` and related functions will start returning ``object``
- arrays because these functions use ``object`` as a fallback when
- no common dtype can be found. However, it may happen that future
- releases of NumPy will generally error in these cases.
-
-This will mainly affect code such as::
-
- np.asarray(['string', 0])
-
-and::
-
- np.concatenate((['string'], [0]))
-
-in both cases adding ``dtype="U"`` or ``dtype="S"`` will give the
-previous (string) result, while ``dtype=object`` will ensure an array with
-object dtype is returned.
-
-Comparisons, universal functions, and casting are not affected by this.
-
-(`gh-18116 <https://github.com/numpy/numpy/pull/18116>`__)
-
-
Expired deprecations
====================