Skip to content

Commit e2812c2

Browse files
authored
Fix a circular import error created by #197. (#225)
1 parent ae882f2 commit e2812c2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/source/changes.rst

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ all releases are available on `PyPI <https://pypi.org/project/pytask>`_ and
1717
- :pull:`219` removes some leftovers from pytest in :class:`~_pytask.mark.Mark`.
1818
- :pull:`221` adds more test cases for parametrizations.
1919
- :pull:`222` adds an automated Github Actions job for creating a list pytask plugins.
20+
- :pull:`225` fixes a circular import noticeable in plugins created by :pull:`197`.
2021

2122

2223
0.1.8 - 2022-02-07

src/pytask/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from _pytask import __version__
55
from _pytask.build import main
6-
from _pytask.cli import cli
76
from _pytask.compat import check_for_optional_program
87
from _pytask.compat import import_optional_dependency
98
from _pytask.config import hookimpl
@@ -32,6 +31,9 @@
3231
from _pytask.outcomes import TaskOutcome
3332
from _pytask.session import Session
3433

34+
# This import must come last, otherwise a circular import occurs.
35+
from _pytask.cli import cli # noreorder
36+
3537

3638
__all__ = [
3739
"__version__",

0 commit comments

Comments
 (0)