Skip to content

Commit f05ca0b

Browse files
committed
fix: ✅ Move Callable import under TYPE_CHECKING for improved clarity and organization
1 parent 8050116 commit f05ca0b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

spectrafit/test/test_models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"""Pytest of the model-module."""
22

3-
from collections.abc import Callable
43
from math import isclose
54
from math import log
65
from math import pi
76
from math import sqrt
8-
from typing import Any
7+
from typing import TYPE_CHECKING, Any
98
from typing import Dict
109
from typing import Tuple
1110

@@ -24,6 +23,9 @@
2423
from spectrafit.models import SolverModels
2524
from spectrafit.models import calculated_model
2625

26+
if TYPE_CHECKING:
27+
from collections.abc import Callable
28+
2729

2830
def assert_solver_models(mp: Tuple[Minimizer, Any]) -> None:
2931
"""Assert SolverModels."""

0 commit comments

Comments
 (0)