BUG: Undo result type change of quantile/percentile but keep q precision (#30601) by charris · Pull Request #30623 · numpy/numpy

added 2 commits

January 9, 2026 15:25
Defer cast to input type to the end of the computation by
passing through the `weak_q` information.

This fixes numpygh-30586, but I am not sure it is great to backport.
Although, compared to the other PR it should just align the nan-functions
fully and otherwise revert anything that isn't just a precision fix.