From: sobolevn Date: Thu, 21 Aug 2025 17:48:40 +0000 (+0300) Subject: gh-137967: Fix "Whats New" doc example (#138028) X-Git-Tag: v3.15.0a1~624 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba8e20b5f2b6bcda188ff00b599d187e985125e2;p=thirdparty%2FPython%2Fcpython.git gh-137967: Fix "Whats New" doc example (#138028) --- diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index eaaf1b9966bc..7748c172e63b 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -190,11 +190,11 @@ Improved error messages return pi * self.radius**2 class Container: - def __init__(self, inner: Any) -> None: + def __init__(self, inner: Circle) -> None: self.inner = inner - square = Square(side=4) - container = Container(square) + circle = Circle(radius=4.0) + container = Container(circle) print(container.area) Running this code now produces a clearer suggestion: