uranusjr commented on code in PR #43773:
URL: https://github.com/apache/airflow/pull/43773#discussion_r1843605019


##########
airflow/example_dags/example_asset_decorator.py:
##########
@@ -18,9 +18,9 @@
 
 import pendulum
 
-from airflow.assets import Asset
 from airflow.decorators import dag, task
-from airflow.decorators.assets import asset
+from airflow.sdk.definitions.asset import Asset
+from airflow.sdk.definitions.decorators.asset import asset

Review Comment:
   This is not just about `@asset` but I’ve always felt it’s somewhat awkward 
we put decorators in a different namespace. There’s not much wrong to just do
   
   ```python
   from airflow.sdk.definitions.asset import asset
   ```
   
   instead.



-- 
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