From d294d5ef1974ad7582bb12845e27ae52c3b75a3f Mon Sep 17 00:00:00 2001 From: William Andrea <22385371+wjandrea@users.noreply.github.com> Date: Fri, 23 Feb 2024 21:21:19 -0500 Subject: [PATCH] PEP 657: Fix alignment typo (#3605) --- peps/pep-0657.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0657.rst b/peps/pep-0657.rst index 255911e3a..94ce30dba 100644 --- a/peps/pep-0657.rst +++ b/peps/pep-0657.rst @@ -105,7 +105,7 @@ This problem presents itself in the following situations. Traceback (most recent call last): File "test.py", line 1, in x = (a + b) @ (c + d) - ValueError: operands could not be broadcast together with shapes (1,2) (2,3) + ValueError: operands could not be broadcast together with shapes (1,2) (2,3) There is no clear indication as to which operation failed, was it the addition on the left, the right or the matrix multiplication in the middle? With this @@ -115,7 +115,7 @@ This problem presents itself in the following situations. File "test.py", line 1, in x = (a + b) @ (c + d) ~~^~~ - ValueError: operands could not be broadcast together with shapes (1,2) (2,3) + ValueError: operands could not be broadcast together with shapes (1,2) (2,3) Giving a much clearer and easier to debug error message.