Skip to content

Commit ef664ae

Browse files
committed
fix: changing callable to typing.Callable
1 parent 2dedbec commit ef664ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/sugarscape_ig/performance_comparison.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
AntPolarsNumbaParallel,
1717
)
1818
from ss_polars.model import SugarscapePolars
19-
19+
from typing_extensions import Callable
2020

2121
class SugarScapeSetup:
2222
def __init__(self, n: int):
@@ -158,11 +158,11 @@ def mesa_frames_polars_numba_parallel(setup: SugarScapeSetup):
158158

159159
def plot_and_print_benchmark(
160160
labels: list[str],
161-
kernels: list[callable],
161+
kernels: list[Callable],
162162
n_range: list[int],
163163
title: str,
164164
image_path: str,
165-
equality_check: callable | None = None,
165+
equality_check: Callable | None = None,
166166
):
167167
out = perfplot.bench(
168168
setup=SugarScapeSetup,

0 commit comments

Comments
 (0)