Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Oct 21, 2024
1 parent e4ef7b8 commit bd889ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flox/aggregations.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def size(self) -> int:
class Aggregation:
def __init__(
self,
name,
name: str,
*,
numpy: str | FuncTuple | None = None,
numpy: str | None = None,
chunk: str | FuncTuple | None,
combine: str | FuncTuple | None,
preprocess: Callable | None = None,
Expand Down Expand Up @@ -217,7 +217,7 @@ def __init__(
self.preprocess = preprocess
# Use "chunk_reduce" or "chunk_argreduce"
self.reduction_type = reduction_type
self.numpy: FuncTuple = (numpy,) if numpy else (self.name,)
self.numpy: FuncTuple = (numpy,) if numpy is not None else (self.name,)
# initialize blockwise reduction
self.chunk: OptionalFuncTuple = _atleast_1d(chunk)
# how to aggregate results after first round of reduction
Expand Down

0 comments on commit bd889ec

Please sign in to comment.