mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 01:34:34 +08:00
Make sure that typeddict py__getitem__ works
This commit is contained in:
1 parent
7ef07b576f
commit
87161df2f0
4 files changed
+17
-10
No files matched your search
@@ -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