Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
This is actually pretty tricky to fix for someone who isn't a regular numpy contributor. numpy/array_api/_dtypes.py and numpy/core/numerictypes.py both define different promotion orders, but there are probably other promotion orders, plus ufuncs are involved, and fixing it likely requires digging into both the ndarray class and basic C type wrapper classes... _dtypes.py does not include uint64 + signed int = float64, but it does mention that behavior in a comment, and that's one of the major reasons I haven't put too much effort into fixing this myself: it's clear it's already kind of accepted by the maintainers.