Skip to content

Conversation

@provinzkraut
Copy link
Contributor

- :func:`msgspec.structs.replace`,
- :func:`copy.replace`,
- :func:`copy.copy`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a better flow of the text, I think this block should be moved after

In addition to in __init__, the __post_init__ hook is also called when:

  • Decoding into a struct type (e.g. msgspec.json.decode(..., type=MyStruct))
  • Converting into a struct type (e.g. msgspec.convert(..., type=MyStruct))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants