summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhushan Mohanraj <50306448+bhushan-mohanraj@users.noreply.github.com>2024-01-28 20:10:32 (GMT)
committerGitHub <noreply@github.com>2024-01-28 20:10:32 (GMT)
commitd00fbed68ffcd5823acbb32a0e47e2e5f9732ff7 (patch)
tree0b858dce46e823626f0899013a66b4c8274a00d7
parent5ecfd750b4f511f270c38f0d748da9cffa279295 (diff)
downloadcpython-d00fbed68ffcd5823acbb32a0e47e2e5f9732ff7.zip
cpython-d00fbed68ffcd5823acbb32a0e47e2e5f9732ff7.tar.gz
cpython-d00fbed68ffcd5823acbb32a0e47e2e5f9732ff7.tar.bz2
Fix indentation in `__post_init__` documentation. (gh-114666)
-rw-r--r--Doc/library/dataclasses.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index 88f2e02..4ada69d 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -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):