]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-150285: Suppress showing the __getstate__() comment in the help for datacla...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 11 Jun 2026 15:16:00 +0000 (17:16 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2026 15:16:00 +0000 (15:16 +0000)
(cherry picked from commit 0066fd73a20950dc790d219f4e3cfb07e816df47)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/dataclasses.py

index f9c1113b1e367f47cd710367c1a2ec3619a94df3..242a6d2ffc23b29a9e710bb0f0a9dd3e38e2a5ce 100644 (file)
@@ -1247,6 +1247,7 @@ def _process_class(cls, init, repr, eq, order, unsafe_hash, frozen,
 # classes with slots.  These could be slightly more performant if we generated
 # the code instead of iterating over fields.  But that can be a project for
 # another day, if performance becomes an issue.
+
 def _dataclass_getstate(self):
     return [getattr(self, f.name) for f in fields(self)]