mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Add an exact_key_items method to DictComprehension fixes #1233
This commit is contained in:
committed by
Dave Halter
parent
bd1010bbd2
commit
3bdb941daa
@@ -319,6 +319,7 @@ exe['c']
|
||||
a = 'a'
|
||||
exe2 = kwargs_func(**{a:3,
|
||||
'b':4.0})
|
||||
|
||||
#? int()
|
||||
exe2['a']
|
||||
#? float()
|
||||
@@ -326,6 +327,19 @@ exe2['b']
|
||||
#? int() float()
|
||||
exe2['c']
|
||||
|
||||
exe3 = kwargs_func(**{k: v for k, v in [(a, 3), ('b', 4.0)]})
|
||||
|
||||
# Should resolve to the same as 2 but jedi is not smart enough yet
|
||||
# Here to make sure it doesn't result in crash though
|
||||
#?
|
||||
exe3['a']
|
||||
|
||||
#?
|
||||
exe3['b']
|
||||
|
||||
#?
|
||||
exe3['c']
|
||||
|
||||
# -----------------
|
||||
# *args / ** kwargs
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user