20
20
from numpy .typing import NDArray
21
21
from typing_extensions import Unpack , assert_never
22
22
23
- from bioimageio .spec ._internal .io_utils import HashKwargs , download
23
+ from bioimageio .spec ._internal .io import HashKwargs , download
24
24
from bioimageio .spec .common import FileSource
25
25
from bioimageio .spec .model import AnyModelDescr , v0_4 , v0_5
26
26
from bioimageio .spec .model .v0_4 import CallableFromDepencency , CallableFromFile
@@ -51,7 +51,7 @@ def import_callable(node: type, /) -> Callable[..., Any]:
51
51
52
52
53
53
@import_callable .register
54
- def _ (node : CallableFromDepencency ) -> Callable [..., Any ]:
54
+ def _ (node : CallableFromDepencency , ** kwargs : Unpack [ HashKwargs ] ) -> Callable [..., Any ]:
55
55
module = importlib .import_module (node .module_name )
56
56
c = getattr (module , str (node .callable_name ))
57
57
if not callable (c ):
@@ -61,7 +61,9 @@ def _(node: CallableFromDepencency) -> Callable[..., Any]:
61
61
62
62
63
63
@import_callable .register
64
- def _ (node : ArchitectureFromLibraryDescr ) -> Callable [..., Any ]:
64
+ def _ (
65
+ node : ArchitectureFromLibraryDescr , ** kwargs : Unpack [HashKwargs ]
66
+ ) -> Callable [..., Any ]:
65
67
module = importlib .import_module (node .import_from )
66
68
c = getattr (module , str (node .callable ))
67
69
if not callable (c ):
0 commit comments