From 3bd15e57ccf7bbad00bfc30ac48ad49df2b84211 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Wed, 4 Nov 2026 03:16:57 +0100 Subject: [PATCH] PEP 823: Update error message in example --- peps/pep-0823.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0823.rst b/peps/pep-0823.rst index 78198a86f39..a1862b132ff 100644 --- a/peps/pep-0823.rst +++ b/peps/pep-0823.rst @@ -431,8 +431,8 @@ Assignments are not permitted and will raise a ``SyntaxError``. >>> a?.b.c.d = 1 File "", line 1 a?.b.c.d = 1 - ^^^^^^^^ - SyntaxError: cannot assign to attribute here. Maybe you meant '==' instead of '='? + ^^^^ + SyntaxError: cannot assign to none-aware expression This does not apply if the ``None``-aware expressions is only part of a larger expression and evaluated on its own, for example as a