Lee-W commented on code in PR #44635:
URL: https://github.com/apache/airflow/pull/44635#discussion_r1872883132


##########
airflow/datasets/__init__.py:
##########
@@ -24,17 +24,60 @@
 # lib.)  This is required by some IDEs to resolve the import paths.
 from __future__ import annotations
 
+import importlib
 import warnings
 
-from airflow.sdk.definitions.asset import AssetAlias as DatasetAlias, Dataset
-
 # TODO: Remove this module in Airflow 3.2
 
-warnings.warn(
-    "Import from the airflow.dataset module is deprecated and "
-    "will be removed in the Airflow 3.2. Please import it from 
'airflow.sdk.definitions.asset'.",
-    DeprecationWarning,
-    stacklevel=2,
-)
+_names_moved_to_sdk = {
+    "DatasetAlias": "AssetAlias",
+    "DatasetAll": "AssetAll",
+    "DatasetAny": "DatasetAny",
+    "Dataset": "Asset",
+    "expand_alias_to_datasets": "expand_alias_to_assets",

Review Comment:
   Yep, just fixed it. Thanks!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to