PEP 589: Fix typo - index 'y' needs quotes (#2438)
This commit is contained in:
parent
41086f5258
commit
cc45dded1b
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue