diff --git a/adaptive/utils.py b/adaptive/utils.py index ac5bc3d1d..f58b72d81 100644 --- a/adaptive/utils.py +++ b/adaptive/utils.py @@ -9,8 +9,6 @@ from atomicwrites import AtomicWriter -from adaptive.learner.base_learner import BaseLearner - def named_product(**items): names = items.keys() @@ -72,7 +70,7 @@ def decorator(method): class _RequireAttrsABCMeta(abc.ABCMeta): - def __call__(self, *args, **kwargs) -> BaseLearner: + def __call__(self, *args, **kwargs): obj = super().__call__(*args, **kwargs) for name, type_ in obj.__annotations__.items(): try: