New GitHub issue #92531 from rhettinger:<br>
<hr>
<pre>
The *median_grouped()* function erroneously returns inconsistent types in its special case path for a single argument. The function should always return a float.
```
>>> median_grouped([Fraction(2, 3), Fraction(3, 5)])
0.16666666666666663
>>>median_grouped([Fraction(2, 3)])
Fraction(2, 3)
>>> median_grouped([Decimal(5.5), Decimal(2.5)])
5.0
>>> median_grouped([Decimal(5.5)])
Decimal('5.5')
```
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/92531">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>