Skip to content

Commit

Permalink
PEP 589: Fix typo - index 'y' needs quotes (#2438)
Browse files Browse the repository at this point in the history
  • Loading branch information
stroxler authored Mar 17, 2022
1 parent 41086f5 commit cc45dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pep-0589.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit cc45dde

Please sign in to comment.