Joffreybvn commented on code in PR #37168:
URL: https://github.com/apache/airflow/pull/37168#discussion_r1483855868


##########
airflow/serialization/serde.py:
##########
@@ -337,6 +344,11 @@ def _is_pydantic(cls: Any) -> bool:
     return hasattr(cls, "model_config") and hasattr(cls, "model_fields") and 
hasattr(cls, "model_fields_set")
 
 
+def _is_namedtuple(cls: Any) -> bool:
+    """Return True if the class is a namedtuple."""
+    return isinstance(cls, tuple) and hasattr(cls, "_asdict") and hasattr(cls, 
"_fields")

Review Comment:
   Yes, done



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