Skip to content

Commit 9fa4712

Browse files
committed
More typing
1 parent fba65b3 commit 9fa4712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flox/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,9 +888,9 @@ def _conc2(x_chunk, key1, key2=slice(None), axis: T_Axes = None) -> np.ndarray:
888888
# return concatenate3(mapped)
889889

890890

891-
def reindex_intermediates(x: IntermediateDict, agg: Aggregation, unique_groups):
891+
def reindex_intermediates(x: IntermediateDict, agg: Aggregation, unique_groups) -> IntermediateDict:
892892
new_shape = x["groups"].shape[:-1] + (len(unique_groups),)
893-
newx = {"groups": np.broadcast_to(unique_groups, new_shape)}
893+
newx: IntermediateDict = {"groups": np.broadcast_to(unique_groups, new_shape)}
894894
newx["intermediates"] = tuple(
895895
reindex_(
896896
v, from_=np.atleast_1d(x["groups"].squeeze()), to=pd.Index(unique_groups), fill_value=f

0 commit comments

Comments
 (0)