kaxil commented on code in PR #52618:
URL: https://github.com/apache/airflow/pull/52618#discussion_r2176570759


##########
providers/microsoft/azure/src/airflow/providers/microsoft/azure/version_compat.py:
##########
@@ -33,3 +33,20 @@ def get_base_airflow_version_tuple() -> tuple[int, int, int]:
 
 
 AIRFLOW_V_3_0_PLUS = get_base_airflow_version_tuple() >= (3, 0, 0)
+
+if AIRFLOW_V_3_0_PLUS:
+    from airflow.sdk import (
+        BaseOperator,
+        BaseOperatorLink,
+        BaseSensorOperator,
+    )
+else:
+    from airflow.models import BaseOperator, BaseOperatorLink

Review Comment:
   ```suggestion
       from airflow.models import BaseOperator, BaseOperatorLink  # type: 
ignore[no-redef]
   ```



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