Skip to content

Commit

Permalink
Fix indentation in __post_init__ documentation. (gh-114666)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhushan-mohanraj authored Jan 28, 2024
1 parent 5ecfd75 commit d00fbed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/dataclasses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d00fbed

Please sign in to comment.