jason810496 commented on code in PR #58092:
URL: https://github.com/apache/airflow/pull/58092#discussion_r2613219604


##########
airflow-core/src/airflow/api_fastapi/common/parameters.py:
##########
@@ -61,6 +61,7 @@
 from airflow.models.taskinstance import TaskInstance
 from airflow.models.variable import Variable
 from airflow.models.xcom import XComModel
+from airflow.serialization.serialized_objects import SerializedDAG

Review Comment:
   The import of `SerializedDAG` needs to be moved under `TYPE_CHECKING` block, 
as we only use `SerializedDAG` for type annotation.
   
   ```python
   
   if TYPE_CHECKING:
       from sqlalchemy.orm.attributes import InstrumentedAttribute
       from sqlalchemy.sql import ColumnElement, Select
       
       from airflow.serialization.serialized_objects import SerializedDAG
   ```



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