also remove crashes with pep 448 unpacking of lists and sets

This commit is contained in:
Claude
2018-09-22 23:29:13 +02:00
committed by Dave Halter
parent 6bc79b4933
commit a2b984ce24
2 changed files with 42 additions and 5 deletions

View File

@@ -147,5 +147,30 @@ d = {'a': 3}
# Should resolve to int() but jedi is not smart enough yet
# Here to make sure it doesn't result in crash though
#? str()
{**d, "b": "b"}["a"]
#?
{**d}["a"]
s = {1, 2, 3}
#? set()
{*s}
#? set()
{*s, 4, *s}
s = {1, 2, 3}
# Should resolve to int() but jedi is not smart enough yet
# Here to make sure it doesn't result in crash though
#?
{*s}.pop()
#? int()
{*s, 4}.pop()
# Should resolve to int() but jedi is not smart enough yet
# Here to make sure it doesn't result in crash though
#?
[*s][0]
#? int()
[*s, 4][0]