We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f4a35 commit 59e09efCopy full SHA for 59e09ef
Lib/test/test_dataclasses.py
@@ -2215,12 +2215,12 @@ class C(B):
2215
self.assertEqual(c.z, 100)
2216
2217
def test_no_init(self):
2218
- dataclass(init=False)
+ @dataclass(init=False)
2219
class C:
2220
i: int = 0
2221
self.assertEqual(C().i, 0)
2222
2223
2224
2225
i: int = 2
2226
def __init__(self):
0 commit comments