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 <1619524440.38.0.385093329161.issue43953@roundup.psfhosted.org>
In-reply-to
Content
Motivating example:

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

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?
History
Date User Action Args
2021-04-27 11:54:00superbobrysetrecipients: + superbobry, eric.smith
2021-04-27 11:54:00superbobrysetmessageid: <1619524440.38.0.385093329161.issue43953@roundup.psfhosted.org>
2021-04-27 11:54:00superbobrylinkissue43953 messages
2021-04-27 11:54:00superbobrycreate