PyDocs

Nav

Python Runtime Services

__post_init__

dataclasses

function
  • __post_init__()
When defined on the class, it will be called by the generated __init__(), normally as self.__post_init__(). However, if any InitVar fields are defined, they will also be passed to __post_init__() in the order they were defined in the class. If no __init__() method is generated, then __post_init__() will not automatically be called.
0 Examples
No examples for dataclasses/__post_init__.
See Also
No see-alsos for dataclasses/__post_init__
0 Notes
No notes for __post_init__