Skip to content

Commit b52cddc

Browse files
committed
Fix type annotation
1 parent 8adc7a1 commit b52cddc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parcels/_python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Generic Python helpers
22
import inspect
3-
from collections.abc import Callable
3+
from types import FunctionType
44

55

66
def isinstance_noimport(obj, class_or_tuple):
@@ -20,7 +20,7 @@ def repr_from_dunder_dict(obj: object) -> str:
2020
return f"{obj.__class__.__qualname__}(" + ", ".join(parts) + ")"
2121

2222

23-
def assert_same_function_signature(f: Callable, *, ref: Callable, context: str) -> None:
23+
def assert_same_function_signature(f: FunctionType, *, ref: FunctionType, context: str) -> None:
2424
"""Ensures a function `f` has the same signature as the reference function `ref`."""
2525
sig_ref = inspect.signature(ref)
2626
sig = inspect.signature(f)

0 commit comments

Comments
 (0)