]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-150285: Suppress showing the __getstate__() comment in the help for dataclasses...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 11 Jun 2026 12:23:19 +0000 (15:23 +0300)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2026 12:23:19 +0000 (15:23 +0300)
Lib/dataclasses.py

index 035678d902adaf90ccc09ad2c687344c7a4661ec..bd317aa9b0f2f3777e92a668ab8289af3fcc1343 100644 (file)
@@ -1250,6 +1250,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)]