uranusjr commented on code in PR #54383:
URL: https://github.com/apache/airflow/pull/54383#discussion_r2300110548
##########
airflow-core/src/airflow/serialization/serialized_objects.py:
##########
@@ -608,12 +622,12 @@ class BaseSerialization:
SERIALIZER_VERSION = 2
@classmethod
- def to_json(cls, var: DAG | SchedulerOperator | dict | list | set | tuple)
-> str:
+ def to_json(cls, var: Any) -> str:
Review Comment:
Subclasses of BaseSerialization all implement to_dict (which this function
calls) as taking `var: Any` so the strict annotation is not useful.
--
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]