Skip to content

Commit 864305d

Browse files
committed
*Actually* test we don't fix annotations on hand-written init functions
The possibility to replace only occurs in _add_slots.
1 parent 37d9b3c commit 864305d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_dataclasses/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2533,7 +2533,7 @@ class D:
25332533
)
25342534

25352535
# Check that __annotate__ is not replaced on non-generated __init__ functions
2536-
@dataclass
2536+
@dataclass(slots=True)
25372537
class E:
25382538
x: str
25392539
def __init__(self, x: int) -> None:

0 commit comments

Comments
 (0)