https://github.com/python/cpython/commit/d00fbed68ffcd5823acbb32a0e47e2e5f9732ff7
commit: d00fbed68ffcd5823acbb32a0e47e2e5f9732ff7
branch: main
author: Bhushan Mohanraj <[email protected]>
committer: ericvsmith <[email protected]>
date: 2024-01-28T15:10:32-05:00
summary:
Fix indentation in `__post_init__` documentation. (gh-114666)
files:
M Doc/library/dataclasses.rst
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index 88f2e0251b1e51..4ada69d63abada 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):
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]