Skip to content

Commit 887b07f

Browse files
committed
Update docs
1 parent bb6f7f6 commit 887b07f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/dataclasses.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ Module-level decorators, classes, and functions
174174
section.
175175

176176
- ``slots``: If true (the default is ``False``), :attr:`__slots__` attribute
177-
will be generated and new class will be returned instead of original one.
178-
If :attr:`__slots__` is defined in the class, then :exc:`TypeError`
177+
will be generated and new class will be returned instead of the original one.
178+
If :attr:`__slots__` is already defined in the class, then :exc:`TypeError`
179179
is raised.
180180

181181
``field``\s may optionally specify a default value, using normal

0 commit comments

Comments
 (0)