From cc45dded1b2d13709365434bd2b069544f09c11d Mon Sep 17 00:00:00 2001 From: Steven Troxler Date: Wed, 16 Mar 2022 18:23:59 -0700 Subject: [PATCH] PEP 589: Fix typo - index 'y' needs quotes (#2438) --- pep-0589.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0589.rst b/pep-0589.rst index 77b2e92cd..1709ac6a0 100644 --- a/pep-0589.rst +++ b/pep-0589.rst @@ -436,7 +436,7 @@ Discussion: y: str def f(a: A) -> None: - a[y] = 1 + a['y'] = 1 def g(b: B) -> None: f(b) # Type check error: 'B' incompatible with 'A'