]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-88531 Fix dataclass __post_init__/__init__ interplay documentation (gh...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 17 Jan 2024 01:33:02 +0000 (02:33 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 01:33:02 +0000 (01:33 +0000)
commit12c6424205561f45edbc1041faa8080de2d8def2
tree454edc4e0d9ab1226560230839393fe4c4331510
parentb201a6a1f107ca3ff4201cb4dc3cd677db6cb52d
[3.12] gh-88531 Fix dataclass __post_init__/__init__ interplay documentation (gh-107404) (#114162)

* Simplify __post_init__ example usage. It applies to all base classes, not just dataclasses.
(cherry picked from commit 05008c27b73da640b63c0d335c65ade517c0eb84)

Co-authored-by: Steffen Zeile <48187781+Kaniee@users.noreply.github.com>
Doc/library/dataclasses.rst