Skip to content

Commit cc45dde

Browse files
authored
PEP 589: Fix typo - index 'y' needs quotes (#2438)
1 parent 41086f5 commit cc45dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pep-0589.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ Discussion:
436436
y: str
437437

438438
def f(a: A) -> None:
439-
a[y] = 1
439+
a['y'] = 1
440440

441441
def g(b: B) -> None:
442442
f(b) # Type check error: 'B' incompatible with 'A'

0 commit comments

Comments
 (0)