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


##########
airflow-core/tests/unit/cli/commands/test_dag_command.py:
##########
@@ -55,8 +54,14 @@
     clear_db_runs,
     parse_and_sync_to_db,
 )
+from tests_common.test_utils.version_compat import AIRFLOW_V_3_1_PLUS
 from unit.models import TEST_DAGS_FOLDER
 
+if AIRFLOW_V_3_1_PLUS:
+    from airflow.sdk.bases.operator import BaseOperator

Review Comment:
   ```suggestion
       from airflow.sdk import BaseOperator
   ```
   
   As a rule of thumb, `airflow.sdk` is the public interface of the sdk and 
should be used instead of modules inside whenever possible.



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