Skip to content

Commit ba8e20b

Browse files
authored
gh-137967: Fix "Whats New" doc example (#138028)
1 parent 539a4ca commit ba8e20b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ Improved error messages
190190
return pi * self.radius**2
191191
192192
class Container:
193-
def __init__(self, inner: Any) -> None:
193+
def __init__(self, inner: Circle) -> None:
194194
self.inner = inner
195195
196-
square = Square(side=4)
197-
container = Container(square)
196+
circle = Circle(radius=4.0)
197+
container = Container(circle)
198198
print(container.area)
199199
200200
Running this code now produces a clearer suggestion:

0 commit comments

Comments
 (0)