Skip to content

Commit dc7ca40

Browse files
[3.15] gh-150285: Suppress showing the __getstate__() comment in the help for dataclasses (GH-151328) (GH-151331)
(cherry picked from commit 0066fd7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent f3532d6 commit dc7ca40

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)