Skip to content

Commit 0066fd7

Browse files
gh-150285: Suppress showing the __getstate__() comment in the help for dataclasses (GH-151328)
1 parent a05b9cd commit 0066fd7

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

0 commit comments

Comments
 (0)