8000 Fixup: Mention that it will be a TypeError (Anirudh's review) · numpy/numpy@3c746b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c746b0

Browse files
committed
Fixup: Mention that it will be a TypeError (Anirudh's review)
1 parent 3cddaa9 commit 3c746b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

numpy/core/src/multiarray/multiarraymodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,10 @@ PyArray_ConcatenateFlattenedArrays(int narrays, PyArrayObject **arrays,
623623
if (casting_not_passed && out_passed) {
624624
/* NumPy 1.19, 2020-04-30 */
625625
if (give_deprecation_warning && DEPRECATE(
626-
"concatenate with `axis=None` will use same-kind "
626+
"concatenate() with `axis=None` will use same-kind "
627627
"casting by default in the future. Please use "
628-
"`casting='unsafe'` to retain the old behaviour.") < 0) {
628+
"`casting='unsafe'` to retain the old behaviour. "
629+
"In the future this will be a TypeError.") < 0) {
629630
Py_DECREF(sliding_view);
630631
Py_DECREF(ret);
631632
return NULL;

0 commit comments

Comments
 (0)
0