Message309065
For this class:
@dataclass
class C:
x: int = 0
y = 0
Generate a TypeError. 'y' is not a field (as defined by @dataclass). It should either be a regular field (by giving it a type annotation) or a ClassVar field. |
|
Date |
User |
Action |
Args |
2017-12-26 18:34:08 | eric.smith | set | recipients:
+ eric.smith |
2017-12-26 18:34:08 | eric.smith | set | messageid: <1514313248.8.0.213398074469.issue32428@psf.upfronthosting.co.za> |
2017-12-26 18:34:08 | eric.smith | link | issue32428 messages |
2017-12-26 18:34:08 | eric.smith | create | |
|