Dev-iL commented on code in PR #59833:
URL: https://github.com/apache/airflow/pull/59833#discussion_r2650374572
##########
devel-common/src/tests_common/test_utils/compat.py:
##########
@@ -52,6 +52,14 @@
DagSerialization = SerializedDAG # type: ignore[assignment,misc,no-redef]
OperatorSerialization = SerializedBaseOperator # type:
ignore[assignment,misc,no-redef]
+try:
+ from airflow.serialization.serialized_objects import
create_scheduler_operator
+except ImportError:
+ # Compatibility for older Airflow versions that don't have
create_scheduler_operator
Review Comment:
Modified to `# Compatibility for Airflow < 3.1`.
3.1 indeed. This was in [a commit that ended up in
3.1.0b1](https://github.com/apache/airflow/commit/379c478a010631aafc57f461088f965e7acda27c).
--
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]