From ba23f1bf71c65cb7c9cd23e7d600c26c0b139025 Mon Sep 17 00:00:00 2001 From: William Andrea Date: Mon, 25 Dec 2023 18:14:33 -0500 Subject: [PATCH] Fix typo (alignment) in PEP 657 --- 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 255911e3af4..94ce30dba98 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.