|
21 | 21 | __all__ = [ |
22 | 22 | "__version__", |
23 | 23 | "Asset", |
| 24 | + "AssetAlias", |
| 25 | + "AssetAll", |
| 26 | + "AssetAny", |
24 | 27 | "AssetWatcher", |
25 | 28 | "BaseOperator", |
26 | 29 | "Connection", |
| 30 | + "Context", |
27 | 31 | "DAG", |
28 | 32 | "EdgeModifier", |
29 | 33 | "Label", |
30 | | - "MappedOperator", |
| 34 | + "Metadata", |
| 35 | + "Param", |
31 | 36 | "TaskGroup", |
32 | 37 | "Variable", |
33 | 38 | "XComArg", |
| 39 | + "asset", |
34 | 40 | "dag", |
35 | 41 | "get_current_context", |
36 | 42 | "get_parsing_context", |
| 43 | + "literal", |
37 | 44 | ] |
38 | 45 |
|
39 | 46 | __version__ = "1.0.0.alpha1" |
40 | 47 |
|
41 | 48 | if TYPE_CHECKING: |
42 | | - from airflow.sdk.definitions.asset import Asset, AssetWatcher |
| 49 | + from airflow.sdk.definitions.asset import Asset, AssetAlias, AssetAll, AssetAny, AssetWatcher |
| 50 | + from airflow.sdk.definitions.assets.decorators import asset |
| 51 | + from airflow.sdk.definitions.assets.metadata import Metadata |
43 | 52 | from airflow.sdk.definitions.baseoperator import BaseOperator |
44 | 53 | from airflow.sdk.definitions.connection import Connection |
45 | | - from airflow.sdk.definitions.context import get_current_context, get_parsing_context |
| 54 | + from airflow.sdk.definitions.context import Context, get_current_context, get_parsing_context |
46 | 55 | from airflow.sdk.definitions.dag import DAG, dag |
47 | 56 | from airflow.sdk.definitions.edges import EdgeModifier, Label |
48 | | - from airflow.sdk.definitions.mappedoperator import MappedOperator |
| 57 | + from airflow.sdk.definitions.param import Param |
49 | 58 | from airflow.sdk.definitions.taskgroup import TaskGroup |
| 59 | + from airflow.sdk.definitions.template import literal |
50 | 60 | from airflow.sdk.definitions.variable import Variable |
51 | 61 | from airflow.sdk.definitions.xcom_arg import XComArg |
52 | 62 |
|
53 | 63 | __lazy_imports: dict[str, str] = { |
| 64 | + "Asset": ".definitions.asset", |
| 65 | + "AssetAlias": ".definitions.asset", |
| 66 | + "AssetAll": ".definitions.asset", |
| 67 | + "AssetAny": ".definitions.asset", |
| 68 | + "AssetWatcher": ".definitions.asset", |
54 | 69 | "BaseOperator": ".definitions.baseoperator", |
55 | 70 | "Connection": ".definitions.connection", |
56 | | - "Param": ".definitions.param", |
57 | | - "ParamsDict": ".definitions.param", |
| 71 | + "Context": ".definitions.context", |
58 | 72 | "DAG": ".definitions.dag", |
59 | 73 | "EdgeModifier": ".definitions.edges", |
60 | 74 | "Label": ".definitions.edges", |
61 | | - "MappedOperator": ".definitions.mappedoperator", |
| 75 | + "Metadata": ".definitions.asset.metadata", |
| 76 | + "Param": ".definitions.param", |
62 | 77 | "TaskGroup": ".definitions.taskgroup", |
63 | 78 | "Variable": ".definitions.variable", |
64 | 79 | "XComArg": ".definitions.xcom_arg", |
| 80 | + "asset": ".definitions.asset.decorators", |
65 | 81 | "dag": ".definitions.dag", |
66 | 82 | "get_current_context": ".definitions.context", |
67 | 83 | "get_parsing_context": ".definitions.context", |
68 | | - "Asset": ".definitions.asset", |
69 | | - "AssetWatcher": ".definitions.asset", |
70 | 84 | } |
71 | 85 |
|
72 | 86 |
|
|
0 commit comments