From ba8e20b5f2b6bcda188ff00b599d187e985125e2 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 21 Aug 2025 20:48:40 +0300 Subject: [PATCH] gh-137967: Fix "Whats New" doc example (#138028) --- Doc/whatsnew/3.15.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.47.3