You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prefer [data classes](https://docs.python.org/3/library/dataclasses.html) to multiple input parameters. Data class parameters allow you to add fields without changing the calling signature.
While this is true, it can get the reader the impression that adding fields to dataclasses will always work. However, in reality, they could encounter serialization/deserialization issues.
Your recommended content
We should add that serialization/deserialization can fail with the default data converter if the new field does not have a default value.
The text was updated successfully, but these errors were encountered:
sync-by-unitobot
changed the title
EDU-3747: [ Documentation request ] improve documentation
EDU-3747: [ Documentation request ] Update Message Handler coverage to clarify use of data class parameters
Jan 10, 2025
Brief description
https://docs.temporal.io/develop/python/message-passing#writing-message-handlers
Prefer [data classes](https://docs.python.org/3/library/dataclasses.html) to multiple input parameters. Data class parameters allow you to add fields without changing the calling signature.
While this is true, it can get the reader the impression that adding fields to dataclasses will always work. However, in reality, they could encounter serialization/deserialization issues.
Your recommended content
We should add that serialization/deserialization can fail with the default data converter if the new field does not have a default value.
The text was updated successfully, but these errors were encountered: