Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dev/tests_common/test_utils/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@
from airflow.sensors.bash import BashSensor # type: ignore[no-redef,attr-defined]
from airflow.sensors.date_time import DateTimeSensor # type: ignore[no-redef,attr-defined]

# Temporary imports here, once python operator moved to standard provider, this can be merged to above block
try:
from airflow.providers.standard.operators.python import PythonOperator
except ImportError:
from airflow.operators.python import PythonOperator # type: ignore[no-redef,attr-defined]


if TYPE_CHECKING:
from airflow.models.asset import (
Expand Down