Make sure that typeddict py__getitem__ works

This commit is contained in:
Dave Halter
2020-02-07 16:45:03 +01:00
parent 7ef07b576f
commit 87161df2f0
4 changed files with 17 additions and 10 deletions

View File

@@ -508,7 +508,7 @@ dynamic_annotation('')
class Foo(typing.TypedDict):
foo: str
bar: List[int]
bar: typing.List[float]
foo
#! ['foo: str']
foo
@@ -519,7 +519,7 @@ class Foo(typing.TypedDict):
d: Foo
#? str()
d['foo']
#? str()
#? float()
d['bar'][0]
#?
d['baz']