Skip to content

Commit a80f39f

Browse files
serhiy-storchakamiss-islington
authored andcommitted
gh-150285: Suppress showing the __getstate__() comment in the help for dataclasses (GH-151328)
(cherry picked from commit 0066fd7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 58c6e78 commit a80f39f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/dataclasses.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,7 @@ def _process_class(cls, init, repr, eq, order, unsafe_hash, frozen,
12471247
# classes with slots. These could be slightly more performant if we generated
12481248
# the code instead of iterating over fields. But that can be a project for
12491249
# another day, if performance becomes an issue.
1250+
12501251
def _dataclass_getstate(self):
12511252
return [getattr(self, f.name) for f in fields(self)]
12521253

0 commit comments

Comments
 (0)