amoghrajesh commented on code in PR #65076:
URL: https://github.com/apache/airflow/pull/65076#discussion_r3079028429


##########
providers/opensearch/src/airflow/providers/opensearch/log/os_task_handler.py:
##########
@@ -61,6 +60,10 @@
 else:
     OsLogMsgType = list[tuple[str, str]]  # type: ignore[assignment,misc]
 
+if AIRFLOW_V_3_2_PLUS:
+    from airflow.sdk import timezone
+else:
+    from airflow.utils import timezone  # type: ignore[attr-defined,no-redef]

Review Comment:
   We have a compat sdk that makes this portion easier. 
   
   ```
   from airflow.providers.common.compat.sdk import timezone
   ```



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