Commit 9b94c1b
committed
Remove unused Asset import and fix test fixtures for new annotation
The annotation on AssetAndTimeSchedule.__init__ was migrated to
Collection[SerializedAsset] | SerializedAssetBase, leaving the
TYPE_CHECKING-only Asset import unreferenced and breaking mypy on
two test files that passed SDK Assets to the core class. The
scheduler tests now import AssetAndTimeSchedule (and the matching
CronTriggerTimetable) from airflow.sdk so the types align with how
DAG authors use it; the timetable test fixture mirrors
core_asset_timetable by constructing SerializedAsset directly.1 parent 322fb8c commit 9b94c1b
3 files changed
Lines changed: 7 additions & 13 deletions
File tree
- airflow-core
- src/airflow/timetables
- tests/unit
- jobs
- timetables
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
103 | | - | |
104 | 105 | | |
105 | | - | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
150 | 145 | | |
151 | 146 | | |
152 | 147 | | |
| |||
0 commit comments