uranusjr commented on code in PR #62758: URL: https://github.com/apache/airflow/pull/62758#discussion_r2881626521
########## providers/standard/tests/unit/standard/utils/test_skipmixin.py: ########## @@ -26,7 +26,11 @@ from airflow.models.taskinstance import TaskInstance as TI from airflow.providers.common.compat.sdk import AirflowException from airflow.providers.standard.operators.empty import EmptyOperator -from airflow.utils import timezone + +try: + from airflow.sdk import timezone +except ImportError: # Fallback for Airflow < 3.1 + from airflow.utils import timezone # type: ignore[attr-defined,no-redef] Review Comment: Import from `from airflow.providers.common.compat.sdk` instead -- 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]
