diff options
author | da-woods <dw-git@d-woods.co.uk> | 2022-08-06 15:56:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-06 15:56:00 (GMT) |
commit | 59e09efe888affe549e9249f188797c1325edecc (patch) | |
tree | 59de286596789c03df12491c9a64e86536a587a4 | |
parent | 15f4a35487d5ed9eb1edfdb9169eae6f5ad0874a (diff) | |
download | cpython-59e09efe888affe549e9249f188797c1325edecc.zip cpython-59e09efe888affe549e9249f188797c1325edecc.tar.gz cpython-59e09efe888affe549e9249f188797c1325edecc.tar.bz2 |
Fix typo in test_dataclasses.py (gh-95735)
`dataclass` was called as a function when it was almost certainly intended to be a decorator.
-rw-r--r-- | Lib/test/test_dataclasses.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_dataclasses.py b/Lib/test/test_dataclasses.py index cfa8209..e2eab69 100644 --- a/Lib/test/test_dataclasses.py +++ b/Lib/test/test_dataclasses.py @@ -2215,12 +2215,12 @@ class TestInit(unittest.TestCase): self.assertEqual(c.z, 100) def test_no_init(self): - dataclass(init=False) + @dataclass(init=False) class C: i: int = 0 self.assertEqual(C().i, 0) - dataclass(init=False) + @dataclass(init=False) class C: i: int = 2 def __init__(self): |