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


##########
airflow-core/src/airflow/timetables/assets.py:
##########
@@ -20,7 +20,10 @@
 import typing
 
 from airflow.exceptions import AirflowTimetableInvalid
-from airflow.serialization.definitions.assets import SerializedAsset, 
SerializedAssetBase
+from airflow.sdk.definitions.asset import BaseAsset  # TODO: Use serialized 
classes.
+from airflow.serialization.definitions.assets import SerializedAsset, 
SerializedAssetAll, SerializedAssetBase
+from airflow.serialization.encoders import ensure_serialized_asset

Review Comment:
   This should be imported inside the encode function (similar to other 
timetables). Encoders are heavy, and a serialized timetable does not need to be 
re-encoded in most cases.



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