Skip to content

Commit

Permalink
Fix type annotation for import_model_module (#2282)
Browse files Browse the repository at this point in the history
The second argument never was optional.
Not sure whether there would be any good default value.
  • Loading branch information
dweindl authored Feb 1, 2024
1 parent 26bb902 commit 37975ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/sdist/amici/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import sys
from pathlib import Path
from types import ModuleType as ModelModule
from typing import Any, Callable, Optional, Union
from typing import Any, Callable, Union


def _get_amici_path():
Expand Down Expand Up @@ -153,7 +153,7 @@ def __exit__(self, exc_type, exc_value, traceback):


def import_model_module(
module_name: str, module_path: Optional[Union[Path, str]] = None
module_name: str, module_path: Union[Path, str]
) -> ModelModule:
"""
Import Python module of an AMICI model
Expand Down

0 comments on commit 37975ed

Please sign in to comment.