From f21f19ddb3ad02ad1546a8a8c7978eba175eee70 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 15 Dec 2019 20:19:06 +0100 Subject: [PATCH] remove BaseLearner import to avoid circular import --- adaptive/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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: