Skip to content

Commit c2c87ca

Browse files
committed
style: move the SchedulerExpandInput into type checking block
1 parent 70e47db commit c2c87ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

airflow-core/src/airflow/models/expandinput.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import functools
2121
import operator
2222
from collections.abc import Iterable, Sized
23-
from typing import TYPE_CHECKING, Any, ClassVar, Union
23+
from typing import TYPE_CHECKING, Any, ClassVar
2424

2525
import attrs
2626

@@ -138,7 +138,8 @@ def get_total_map_length(self, run_id: str, *, session: Session) -> int:
138138
"list-of-dicts": SchedulerListOfDictsExpandInput,
139139
}
140140

141-
SchedulerExpandInput = Union[SchedulerDictOfListsExpandInput, SchedulerListOfDictsExpandInput]
141+
if TYPE_CHECKING:
142+
SchedulerExpandInput = SchedulerDictOfListsExpandInput | SchedulerListOfDictsExpandInput
142143

143144

144145
def create_expand_input(kind: str, value: Any) -> SchedulerExpandInput:

0 commit comments

Comments
 (0)