bhavaniravi commented on code in PR #57117: URL: https://github.com/apache/airflow/pull/57117#discussion_r2458672695
########## providers/docker/src/airflow/providers/docker/version_compat.py: ########## @@ -35,21 +35,7 @@ def get_base_airflow_version_tuple() -> tuple[int, int, int]: AIRFLOW_V_3_0_PLUS = get_base_airflow_version_tuple() >= (3, 0, 0) AIRFLOW_V_3_1_PLUS: bool = get_base_airflow_version_tuple() >= (3, 1, 0) -# Version-compatible imports -# BaseOperator: Use 3.1+ due to xcom_push method missing in SDK BaseOperator 3.0.x -# This is needed for DecoratedOperator compatibility -if AIRFLOW_V_3_1_PLUS: - from airflow.sdk import ( - BaseHook, - BaseOperator, - ) Review Comment: BaseHook and DecoratedOperator too? -- 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]
