8000 DOC: Fixup deprecation dates · numpy/numpy@c8eb9d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8eb9d4

Browse files
committed
DOC: Fixup deprecation dates
1 parent 1a79c06 commit c8eb9d4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

numpy/core/multiarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ def concatenate(arrays, axis=None, out=None, *, dtype=None, casting=None):
163163
If provided, the destination array will have this dtype. Cannot be
164164
provided together with `out`.
165165
166-
..versionadded:: 1.19.0
166+
..versionadded:: 1.20.0
167167
168168
casting : {'no', 'equiv', 'safe', 'same_kind', 'unsafe'}, optional
169169
Controls what kind of data casting may occur. Defaults to 'same_kind'.
170170
171-
..versionadded:: 1.19.0
171+
..versionadded:: 1.20.0
172172
173173
Returns
174174
-------

numpy/core/src/multiarray/multiarraymodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ PyArray_ConcatenateFlattenedArrays(int narrays, PyArrayObject **arrays,
621621
arrays[iarrays], PyArray_DESCR(ret), casting)) {
622622
/* This should be an error, but was previously allowed here. */
623623
if (casting_not_passed && out_passed) {
624-
/* NumPy 1.19, 2020-04-30 */
624+
/* NumPy 1.20, 2020-09-03 */
625625
if (give_deprecation_warning && DEPRECATE(
626626
"concatenate() with `axis=None` will use same-kind "
627627
"casting by default in the future. Please use "

numpy/core/tests/test_deprecations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ def test_deprecated(self):
709709

710710

711711
class FlatteningConcatenateUnsafeCast(_DeprecationTestCase):
712+
# NumPy 1.20, 2020-09-03
712713
message = "concatenate with `axis=None` will use same-kind casting"
713714

714715
def test_deprecated(self):

0 commit comments

Comments
 (0)
0