Skip to content

Commit e95a241

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 06dce35 commit e95a241

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
@@ -1186,6 +1186,7 @@ def _process_class(cls, init, repr, eq, order, unsafe_hash, frozen,
11861186
# classes with slots. These could be slightly more performant if we generated
11871187
# the code instead of iterating over fields. But that can be a project for
11881188
# another day, if performance becomes an issue.
1189+
11891190
def _dataclass_getstate(self):
11901191
return [getattr(self, f.name) for f in fields(self)]
11911192

0 commit comments

Comments
 (0)