|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | +""" |
| 18 | +Type stubs for IDE autocomplete - always uses Airflow 3 paths. |
| 19 | +
|
| 20 | +This file is auto-generated from lazy_compat.py. |
| 21 | + - run scripts/ci/prek/check_common_compat_lazy_imports.py --generate instead. |
| 22 | +""" |
| 23 | + |
| 24 | +import airflow.sdk.io as io |
| 25 | +import airflow.sdk.timezone as timezone |
| 26 | +from airflow.exceptions import ( |
| 27 | + AirflowBadRequest as AirflowBadRequest, |
| 28 | + AirflowConfigException as AirflowConfigException, |
| 29 | + AirflowException as AirflowException, |
| 30 | + AirflowFailException as AirflowFailException, |
| 31 | + AirflowNotFoundException as AirflowNotFoundException, |
| 32 | + AirflowSensorTimeout as AirflowSensorTimeout, |
| 33 | + AirflowSkipException as AirflowSkipException, |
| 34 | + AirflowTaskTerminated as AirflowTaskTerminated, |
| 35 | + AirflowTaskTimeout as AirflowTaskTimeout, |
| 36 | +) |
| 37 | +from airflow.models.dagrun import DagRun as DagRun |
| 38 | +from airflow.models.mappedoperator import MappedOperator as MappedOperator |
| 39 | +from airflow.models.taskinstance import TaskInstance as TaskInstance |
| 40 | +from airflow.models.xcom import XCOM_RETURN_KEY as XCOM_RETURN_KEY |
| 41 | +from airflow.providers.standard.hooks.filesystem import FSHook as FSHook |
| 42 | +from airflow.providers.standard.hooks.package_index import PackageIndexHook as PackageIndexHook |
| 43 | +from airflow.providers.standard.hooks.subprocess import SubprocessHook as SubprocessHook |
| 44 | +from airflow.providers.standard.operators.bash import BashOperator as BashOperator |
| 45 | +from airflow.providers.standard.operators.branch import ( |
| 46 | + BaseBranchOperator as BaseBranchOperator, |
| 47 | + BranchMixIn as BranchMixIn, |
| 48 | +) |
| 49 | +from airflow.providers.standard.operators.datetime import BranchDateTimeOperator as BranchDateTimeOperator |
| 50 | +from airflow.providers.standard.operators.empty import EmptyOperator as EmptyOperator |
| 51 | +from airflow.providers.standard.operators.latest_only import LatestOnlyOperator as LatestOnlyOperator |
| 52 | +from airflow.providers.standard.operators.python import ( |
| 53 | + _SERIALIZERS as _SERIALIZERS, |
| 54 | + BranchExternalPythonOperator as BranchExternalPythonOperator, |
| 55 | + BranchPythonOperator as BranchPythonOperator, |
| 56 | + BranchPythonVirtualenvOperator as BranchPythonVirtualenvOperator, |
| 57 | + ExternalPythonOperator as ExternalPythonOperator, |
| 58 | + PythonOperator as PythonOperator, |
| 59 | + PythonVirtualenvOperator as PythonVirtualenvOperator, |
| 60 | + ShortCircuitOperator as ShortCircuitOperator, |
| 61 | +) |
| 62 | +from airflow.providers.standard.operators.smooth import SmoothOperator as SmoothOperator |
| 63 | +from airflow.providers.standard.operators.trigger_dagrun import TriggerDagRunOperator as TriggerDagRunOperator |
| 64 | +from airflow.providers.standard.operators.weekday import BranchDayOfWeekOperator as BranchDayOfWeekOperator |
| 65 | +from airflow.providers.standard.sensors.bash import BashSensor as BashSensor |
| 66 | +from airflow.providers.standard.sensors.date_time import ( |
| 67 | + DateTimeSensor as DateTimeSensor, |
| 68 | + DateTimeSensorAsync as DateTimeSensorAsync, |
| 69 | +) |
| 70 | +from airflow.providers.standard.sensors.external_task import ( |
| 71 | + ExternalDagLink as ExternalDagLink, |
| 72 | + ExternalTaskMarker as ExternalTaskMarker, |
| 73 | + ExternalTaskSensor as ExternalTaskSensor, |
| 74 | +) |
| 75 | +from airflow.providers.standard.sensors.filesystem import FileSensor as FileSensor |
| 76 | +from airflow.providers.standard.sensors.python import PythonSensor as PythonSensor |
| 77 | +from airflow.providers.standard.sensors.time import ( |
| 78 | + TimeSensor as TimeSensor, |
| 79 | + TimeSensorAsync as TimeSensorAsync, |
| 80 | +) |
| 81 | +from airflow.providers.standard.sensors.time_delta import ( |
| 82 | + TimeDeltaSensor as TimeDeltaSensor, |
| 83 | + TimeDeltaSensorAsync as TimeDeltaSensorAsync, |
| 84 | +) |
| 85 | +from airflow.providers.standard.sensors.weekday import DayOfWeekSensor as DayOfWeekSensor |
| 86 | +from airflow.providers.standard.triggers.temporal import TimeDeltaTrigger as TimeDeltaTrigger |
| 87 | +from airflow.providers.standard.utils.python_virtualenv import ( |
| 88 | + prepare_virtualenv as prepare_virtualenv, |
| 89 | + write_python_script as write_python_script, |
| 90 | +) |
| 91 | +from airflow.sdk import ( |
| 92 | + DAG as DAG, |
| 93 | + Asset as Asset, |
| 94 | + AssetAlias as AssetAlias, |
| 95 | + AssetAll as AssetAll, |
| 96 | + AssetAny as AssetAny, |
| 97 | + BaseHook as BaseHook, |
| 98 | + BaseNotifier as BaseNotifier, |
| 99 | + BaseOperator as BaseOperator, |
| 100 | + BaseOperatorLink as BaseOperatorLink, |
| 101 | + BaseSensorOperator as BaseSensorOperator, |
| 102 | + Connection as Connection, |
| 103 | + Context as Context, |
| 104 | + DagRunState as DagRunState, |
| 105 | + EdgeModifier as EdgeModifier, |
| 106 | + Label as Label, |
| 107 | + Metadata as Metadata, |
| 108 | + ObjectStoragePath as ObjectStoragePath, |
| 109 | + Param as Param, |
| 110 | + PokeReturnValue as PokeReturnValue, |
| 111 | + TaskGroup as TaskGroup, |
| 112 | + TaskInstanceState as TaskInstanceState, |
| 113 | + TriggerRule as TriggerRule, |
| 114 | + Variable as Variable, |
| 115 | + WeightRule as WeightRule, |
| 116 | + XComArg as XComArg, |
| 117 | + chain as chain, |
| 118 | + chain_linear as chain_linear, |
| 119 | + cross_downstream as cross_downstream, |
| 120 | + dag as dag, |
| 121 | + get_current_context as get_current_context, |
| 122 | + get_parsing_context as get_parsing_context, |
| 123 | + setup as setup, |
| 124 | + task as task, |
| 125 | + task_group as task_group, |
| 126 | + teardown as teardown, |
| 127 | +) |
| 128 | +from airflow.sdk.bases.decorator import ( |
| 129 | + DecoratedMappedOperator as DecoratedMappedOperator, |
| 130 | + DecoratedOperator as DecoratedOperator, |
| 131 | + TaskDecorator as TaskDecorator, |
| 132 | +) |
| 133 | +from airflow.sdk.bases.sensor import poke_mode_only as poke_mode_only |
| 134 | +from airflow.sdk.definitions.template import literal as literal |
| 135 | +from airflow.sdk.execution_time.xcom import XCom as XCom |
| 136 | + |
| 137 | +__all__: list[str] = [ |
| 138 | + "AirflowBadRequest", |
| 139 | + "AirflowConfigException", |
| 140 | + "AirflowException", |
| 141 | + "AirflowFailException", |
| 142 | + "AirflowNotFoundException", |
| 143 | + "AirflowSensorTimeout", |
| 144 | + "AirflowSkipException", |
| 145 | + "AirflowTaskTerminated", |
| 146 | + "AirflowTaskTimeout", |
| 147 | + "Asset", |
| 148 | + "AssetAlias", |
| 149 | + "AssetAll", |
| 150 | + "AssetAny", |
| 151 | + "BaseBranchOperator", |
| 152 | + "BaseHook", |
| 153 | + "BaseNotifier", |
| 154 | + "BaseOperator", |
| 155 | + "BaseOperatorLink", |
| 156 | + "BaseSensorOperator", |
| 157 | + "BashOperator", |
| 158 | + "BashSensor", |
| 159 | + "BranchDateTimeOperator", |
| 160 | + "BranchDayOfWeekOperator", |
| 161 | + "BranchExternalPythonOperator", |
| 162 | + "BranchMixIn", |
| 163 | + "BranchPythonOperator", |
| 164 | + "BranchPythonVirtualenvOperator", |
| 165 | + "Connection", |
| 166 | + "Context", |
| 167 | + "DAG", |
| 168 | + "DagRun", |
| 169 | + "DagRunState", |
| 170 | + "DateTimeSensor", |
| 171 | + "DateTimeSensorAsync", |
| 172 | + "DayOfWeekSensor", |
| 173 | + "DecoratedMappedOperator", |
| 174 | + "DecoratedOperator", |
| 175 | + "EdgeModifier", |
| 176 | + "EmptyOperator", |
| 177 | + "ExternalDagLink", |
| 178 | + "ExternalPythonOperator", |
| 179 | + "ExternalTaskMarker", |
| 180 | + "ExternalTaskSensor", |
| 181 | + "FSHook", |
| 182 | + "FileSensor", |
| 183 | + "Label", |
| 184 | + "LatestOnlyOperator", |
| 185 | + "MappedOperator", |
| 186 | + "Metadata", |
| 187 | + "ObjectStoragePath", |
| 188 | + "PackageIndexHook", |
| 189 | + "Param", |
| 190 | + "PokeReturnValue", |
| 191 | + "PythonOperator", |
| 192 | + "PythonSensor", |
| 193 | + "PythonVirtualenvOperator", |
| 194 | + "ShortCircuitOperator", |
| 195 | + "SmoothOperator", |
| 196 | + "SubprocessHook", |
| 197 | + "TaskDecorator", |
| 198 | + "TaskGroup", |
| 199 | + "TaskInstance", |
| 200 | + "TaskInstanceState", |
| 201 | + "TimeDeltaSensor", |
| 202 | + "TimeDeltaSensorAsync", |
| 203 | + "TimeDeltaTrigger", |
| 204 | + "TimeSensor", |
| 205 | + "TimeSensorAsync", |
| 206 | + "TriggerDagRunOperator", |
| 207 | + "TriggerRule", |
| 208 | + "Variable", |
| 209 | + "WeightRule", |
| 210 | + "XCOM_RETURN_KEY", |
| 211 | + "XCom", |
| 212 | + "XComArg", |
| 213 | + "_SERIALIZERS", |
| 214 | + "chain", |
| 215 | + "chain_linear", |
| 216 | + "cross_downstream", |
| 217 | + "dag", |
| 218 | + "get_current_context", |
| 219 | + "get_parsing_context", |
| 220 | + "io", |
| 221 | + "literal", |
| 222 | + "poke_mode_only", |
| 223 | + "prepare_virtualenv", |
| 224 | + "setup", |
| 225 | + "task", |
| 226 | + "task_group", |
| 227 | + "teardown", |
| 228 | + "timezone", |
| 229 | + "write_python_script", |
| 230 | +] |
0 commit comments