sjyangkevin commented on code in PR #51059:
URL: https://github.com/apache/airflow/pull/51059#discussion_r2149927275
##########
airflow-core/src/airflow/serialization/serde.py:
##########
@@ -145,6 +167,12 @@ def serialize(o: object, depth: int = 0) -> U | None:
qn = "builtins.tuple"
classname = qn
+ if _is_pydantic_model(o):
+ # to match the generic Pydantic serializer and deserializer in
_serializers and _deserializers
+ qn = "pydantic.main.BaseModel"
Review Comment:
Yeah, I also think about that before since this constant is referred
multiple times. Will create a constant `PYDANTIC_MODEL_QN`, let me know if
there are better naming for this.
--
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]