PyDocs

Nav

Python Runtime Services

InitVar

  • InitVar(type)
InitVar[T] type annotations describe variables that are init-only. Fields annotated with InitVar are considered pseudo-fields, and thus are neither returned by the fields() function nor used in any way except adding them as parameters to __init__() and an optional __post_init__().
0 Examples
No examples for dataclasses/InitVar.
See Also
No see-alsos for dataclasses/InitVar
0 Notes
No notes for InitVar