8000 API: No timedelta/datetimes are not integers and do not promote by seberg · Pull Request #22568 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

API: No timedelta/datetimes are not integers and do not promote #22568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
MAINT: Remove now unnecessary type-resolution path
  • Loading branch information
seberg committed May 15, 2023
commit 21d27756dbcbb4f7d86095cf54179631c5f3d5cd
2 changes: 1 addition & 1 deletion numpy/core/src/umath/ufunc_type_resolution.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ PyUFunc_SimpleBinaryComparisonTypeResolver(PyUFuncObject *ufunc,
* ResultType would give for number->string promotions.
* (We never supported flexible dtypes here.)
*/
else if (!PyArray_ISFLEXIBLE(operands[0]) &&
if (!PyArray_ISFLEXIBLE(operands[0]) &&
!PyArray_ISFLEXIBLE(operands[1])) {
out_dtypes[0] = PyArray_ResultType(2, operands, 0, NULL);
if (out_dtypes[0] == NULL) {
Expand Down
0