Skip to content

Commit f21f19d

Browse files
committed
remove BaseLearner import to avoid circular import
1 parent a3abf55 commit f21f19d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adaptive/utils.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
from atomicwrites import AtomicWriter
1111

12-
from adaptive.learner.base_learner import BaseLearner
13-
1412

1513
def named_product(**items):
1614
names = items.keys()
@@ -72,7 +70,7 @@ def decorator(method):
7270

7371

7472
class _RequireAttrsABCMeta(abc.ABCMeta):
75-
def __call__(self, *args, **kwargs) -> BaseLearner:
73+
def __call__(self, *args, **kwargs):
7674
obj = super().__call__(*args, **kwargs)
7775
for name, type_ in obj.__annotations__.items():
7876
try:

0 commit comments

Comments
 (0)