PEP 589: Fix typo - index 'y' needs quotes (#2438)

This commit is contained in:
Steven Troxler 2022-03-16 18:23:59 -07:00 committed by GitHub
parent 41086f5258
commit cc45dded1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ Discussion:
y: str y: str
def f(a: A) -> None: def f(a: A) -> None:
a[y] = 1 a['y'] = 1
def g(b: B) -> None: def g(b: B) -> None:
f(b) # Type check error: 'B' incompatible with 'A' f(b) # Type check error: 'B' incompatible with 'A'