You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2025/12/30 07:29:40 UTC
Re: [PR] TaskInstance unused method cleanup [airflow]
uranusjr commented on code in PR #59835:
URL: https://github.com/apache/airflow/pull/59835#discussion_r2652398438
##########
airflow-core/tests/unit/core/test_core.py:
##########
@@ -22,8 +22,8 @@
import pytest
from airflow._shared.timezones.timezone import datetime
-from airflow.models.baseoperator import BaseOperator
from airflow.providers.standard.operators.empty import EmptyOperator
+from airflow.sdk import BaseOperator
Review Comment:
I don't think there's a good way no to avoid `airflow.sdk` in tests at the moment since you need to build dags to test against. Maybe someday we'll be able to improve this, especially when we allow writing dags in other languages.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org