We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c7489d commit 3454db9Copy full SHA for 3454db9
flox/aggregations.py
@@ -208,7 +208,7 @@ def __init__(
208
# how to aggregate results after first round of reduction
209
self.combine: OptionalFuncTuple = _atleast_1d(combine)
210
# simpler reductions used with the "simple combine" algorithm
211
- self.simple_combine: tuple[Callable, ...] = ()
+ self.simple_combine: OptionalFuncTuple = ()
212
# finalize results (see mean)
213
self.finalize: Callable | None = finalize
214
@@ -609,7 +609,7 @@ def _initialize_aggregation(
609
else:
610
agg.min_count = 0
611
612
- simple_combine: list[Callable] = []
+ simple_combine: list[Callable | None] = []
613
for combine in agg.combine:
614
if isinstance(combine, str):
615
if combine in ["nanfirst", "nanlast"]:
0 commit comments