Skip to content

Commit c1a5679

Browse files
committed
Reformat imports
1 parent 9fe7afa commit c1a5679

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

python/fluxqueue/_task.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import inspect
22
from collections.abc import Callable, Coroutine
33
from functools import wraps
4-
from typing import Any, ParamSpec, cast, get_type_hints, overload
4+
from typing import TYPE_CHECKING, Any, ParamSpec, cast, get_type_hints, overload
55

6-
from ._core import FluxQueueCore
76
from .utils import get_task_name
87

8+
if TYPE_CHECKING:
9+
from ._core import FluxQueueCore
10+
911
P = ParamSpec("P")
1012

1113

python/fluxqueue/context.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,22 @@
22
import threading
33
from collections.abc import Callable, Coroutine
44
from contextvars import ContextVar
5-
from typing import Any, Concatenate, ParamSpec, TypeVar, cast, get_type_hints, overload
5+
from typing import (
6+
TYPE_CHECKING,
7+
Any,
8+
Concatenate,
9+
ParamSpec,
10+
TypeVar,
11+
cast,
12+
get_type_hints,
13+
overload,
14+
)
615

7-
from ._core import FluxQueueCore
816
from ._task import _task_decorator
9-
from .models import TaskMetadata
17+
18+
if TYPE_CHECKING:
19+
from ._core import FluxQueueCore
20+
from .models import TaskMetadata
1021

1122
P = ParamSpec("P")
1223

0 commit comments

Comments
 (0)