mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Make sure that typeddict py__getitem__ works
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user