Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 28, 2024
1 parent e89a226 commit 7082c55
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion flox/aggregations.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,17 @@ def _initialize_aggregation(
)

final_dtype = _normalize_dtype(dtype_ or agg.dtype_init["final"], array_dtype, fill_value)
if agg.name not in ["first", "last", "nanfirst", "nanlast", "min", "max", "nanmin", "nanmax", "topk"]:
if agg.name not in [
"first",
"last",
"nanfirst",
"nanlast",
"min",
"max",
"nanmin",
"nanmax",
"topk",
]:
final_dtype = _maybe_promote_int(final_dtype)
agg.dtype = {
"user": dtype, # Save to automatically choose an engine
Expand Down

0 comments on commit 7082c55

Please sign in to comment.