EDU-3747: [ Documentation request ] Update Message Handler coverage to clarify use of data class parameters #3278
Labels
cross-team
This issue or PR was submitted from within Temporal
tracking-internally
A JIRA ticket has been generated and the EDU number is attached to the title of this issue or PR
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: