Skip to content

Commit

Permalink
remove BaseLearner import to avoid circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Dec 15, 2019
1 parent a3abf55 commit f21f19d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions adaptive/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

from atomicwrites import AtomicWriter

from adaptive.learner.base_learner import BaseLearner


def named_product(**items):
names = items.keys()
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f21f19d

Please sign in to comment.