Skip to content

Commit 7b5ba66

Browse files
committed
style: fix small typing issue
1 parent ecc44c0 commit 7b5ba66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/nutpie/compile_pymc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def intrinsic(f):
3232

3333

3434
def _rv_dict_to_flat_array_wrapper(
35-
fn: Callable[[SeedType], dict[str, np.ndarray]],
35+
fn: Callable[[SeedType | None], dict[str, np.ndarray]],
3636
names: list[str],
3737
shapes: list[tuple[int]],
3838
) -> Callable[[SeedType], np.ndarray]:
@@ -61,7 +61,7 @@ def _rv_dict_to_flat_array_wrapper(
6161
"""
6262

6363
@wraps(fn)
64-
def seeded_array_fn(seed: SeedType = None):
64+
def seeded_array_fn(seed: SeedType | None = None):
6565
initial_value_dict = fn(seed)
6666
total_size = sum(np.prod(shape).astype(int) for shape in shapes)
6767
flat_array = np.empty(total_size, dtype="float64", order="C")

0 commit comments

Comments
 (0)