summaryrefslogtreecommitdiff
path: root/doc/release/upcoming_changes/16592.compatibility.rst
blob: 289e768fce576db619969d04583f222a3eaa72a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
float->timedelta and uint64->timedelta promotion will raise a TypeError
-----------------------------------------------------------------------
Float and timedelta promotion consistently raises a TypeError.
``np.promote_types("float32", "m8")`` aligns with
``np.promote_types("m8", "float32")`` now and both raise a TypeError.
Previously, ``np.promote_types("float32", "m8")`` returned ``"m8"`` which
was considered a bug.

Uint64 and timedelta promotion consistently raises a TypeError.
``np.promote_types("uint64", "m8")`` aligns with
``np.promote_types("m8", "uint64")`` now and both raise a TypeError.
Previously, ``np.promote_types("uint64", "m8")`` returned ``"m8"`` which
was considered a bug.