From 510bd460d2c3dbbe083389afc7079414ebc0417c Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Wed, 1 Feb 2023 01:29:01 +0000 Subject: [PATCH] Improve `statistics.median_grouped` on <=3.10 (#9636) --- stdlib/statistics.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/statistics.pyi b/stdlib/statistics.pyi index 5fa519edf..4ef950b9b 100644 --- a/stdlib/statistics.pyi +++ b/stdlib/statistics.pyi @@ -61,7 +61,7 @@ if sys.version_info >= (3, 11): def median_grouped(data: Iterable[SupportsFloat], interval: SupportsFloat = 1.0) -> float: ... else: - def median_grouped(data: Iterable[_NumberT], interval: _NumberT = ...) -> _NumberT | float: ... + def median_grouped(data: Iterable[_NumberT], interval: _NumberT | float = 1) -> _NumberT | float: ... def mode(data: Iterable[_HashableT]) -> _HashableT: ...