gopidesupavan commented on code in PR #53004:
URL: https://github.com/apache/airflow/pull/53004#discussion_r2196907677
##########
airflow-core/src/airflow/serialization/serde.py:
##########
@@ -284,7 +284,12 @@ def deserialize(o: T | None, full=True, type_hint: Any =
None) -> object:
class_version,
)
- return cls(**deserialize(value))
+ deserialize_value = deserialize(value)
+ if not isinstance(deserialize_value, dict):
+ raise TypeError(
+ f"deserialized value for {classname} is not a dict, got
{type(deserialize_value)}"
+ )
+ return cls(**deserialize_value) # type: ignore[operator]
Review Comment:
It is already defined as Any
https://github.com/apache/airflow/pull/53004/files#diff-5d7a43b9860e3c6d80d8feadce5ae76a3a56698fd8dff389fb6095c01153e74eR237,
though i tried your approach still same error.
--
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]