]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix indentation in `__post_init__` documentation. (gh-114666)
authorBhushan Mohanraj <50306448+bhushan-mohanraj@users.noreply.github.com>
Sun, 28 Jan 2024 20:10:32 +0000 (15:10 -0500)
committerGitHub <noreply@github.com>
Sun, 28 Jan 2024 20:10:32 +0000 (15:10 -0500)
Doc/library/dataclasses.rst

index 88f2e0251b1e5192a029db52ab629c14c951ab98..4ada69d63abada19a394b1b8d1d021873f6d9ac9 100644 (file)
@@ -538,8 +538,8 @@ that has to be called, it is common to call this method in a
 
     class Rectangle:
         def __init__(self, height, width):
-          self.height = height
-          self.width = width
+            self.height = height
+            self.width = width
 
     @dataclass
     class Square(Rectangle):