This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author superbobry
Recipients eric.smith, superbobry
Date 2021-04-27.11:54:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Motivating example:

>>> @dataclass
... class A:
...   x: InitVar[int] = 0
...   y: int = 1
>>> a = A()
>>> a.x
>>> a.y

PEP-557 does not specify if fields annotated with InitVar[...] are available on the resulting dataclass. However, they are not part of the dataclass structure and are only used for __*init__ generation, so perhaps they shouldn't be? Wdyt?
Date User Action Args
2021-04-27 11:54:00superbobrysetrecipients: + superbobry, eric.smith
2021-04-27 11:54:00superbobrysetmessageid: <>
2021-04-27 11:54:00superbobrylinkissue43953 messages
2021-04-27 11:54:00superbobrycreate