Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5fe59ff

Browse files
committedMar 8, 2024·
fix.
1 parent cf05f16 commit 5fe59ff

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎src/pytask/__init__.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
"""Contains the main namespace for pytask."""
22

3-
from __future__ import annotations
3+
from __future__ import annotations # noqa: I001
44

55
from _pytask import __version__
66
from _pytask._hashlib import hash_value
77
from _pytask.build import build
88
from _pytask.capture_utils import CaptureMethod
99
from _pytask.capture_utils import ShowCapture
1010

11-
# _pytask.cli needs to be imported last because it triggers extending the cli and
12-
# therefore loading plugins which will attempt to import modules that might only be
13-
# partially initialized. Maybe not here, but definitely for plugins.
14-
from _pytask.cli import cli # noreorder
11+
1512
from _pytask.click import ColoredCommand
1613
from _pytask.click import ColoredGroup
1714
from _pytask.click import EnumChoice
@@ -79,6 +76,11 @@
7976
from _pytask.warnings_utils import parse_warning_filter
8077
from _pytask.warnings_utils import warning_record_to_str
8178

79+
# _pytask.cli needs to be imported last because it triggers extending the cli and
80+
# therefore loading plugins which will attempt to import modules that might only be
81+
# partially initialized. Maybe not here, but definitely for plugins.
82+
from _pytask.cli import cli
83+
8284
__all__ = [
8385
"BaseTable",
8486
"CaptureMethod",

0 commit comments

Comments
 (0)
Please sign in to comment.