Skip to content

Commit aa4b9b3

Browse files
committed
fix types
1 parent 4541c46 commit aa4b9b3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

flox/aggregations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ def __init__(
162162
self,
163163
name: str,
164164
*,
165-
numpy: str | None = None,
166-
chunk: str | FuncTuple | None,
165+
numpy: partial | str | None = None,
166+
chunk: partial | str | FuncTuple | None,
167167
combine: str | FuncTuple | None,
168168
preprocess: Callable | None = None,
169169
finalize: Callable | None = None,

flox/multiarray.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
from collections.abc import Callable
12
from typing import Self
23

34
import numpy as np
45

5-
MULTIARRAY_HANDLED_FUNCTIONS = {}
6+
MULTIARRAY_HANDLED_FUNCTIONS: dict[Callable, Callable] = {}
67

78

89
class MultiArray:

0 commit comments

Comments
 (0)