potiuk commented on code in PR #49209:
URL: https://github.com/apache/airflow/pull/49209#discussion_r2041901103


##########
providers/openlineage/src/airflow/providers/openlineage/utils/utils.py:
##########
@@ -54,7 +54,12 @@
 from airflow.sensors.base import BaseSensorOperator
 from airflow.serialization.serialized_objects import SerializedBaseOperator
 from airflow.utils.module_loading import import_string
-from airflow.utils.session import NEW_SESSION, provide_session
+
+if not AIRFLOW_V_3_0_PLUS:
+    from airflow.utils.session import NEW_SESSION, provide_session
+else:
+    NEW_SESSION = None  # type: ignore[assignment]
+    provide_session = None  # type: ignore[assignment]

Review Comment:
   YEash should not be is we add iff below.



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