mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix indentation in __post_init__
documentation. (gh-114666)
This commit is contained in:
parent
5ecfd750b4
commit
d00fbed68f
1 changed files with 2 additions and 2 deletions
|
@ -538,8 +538,8 @@ that has to be called, it is common to call this method in a
|
||||||
|
|
||||||
class Rectangle:
|
class Rectangle:
|
||||||
def __init__(self, height, width):
|
def __init__(self, height, width):
|
||||||
self.height = height
|
self.height = height
|
||||||
self.width = width
|
self.width = width
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Square(Rectangle):
|
class Square(Rectangle):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue