forked from VimPlug/jedi
fix issues with tokens in expression list
This commit is contained in:
@@ -107,6 +107,8 @@ def _get_number(iterator, priority=PythonGrammar.LOWEST_PRIORITY):
|
||||
_syntax_error(el)
|
||||
return _get_number(iterator, priority)
|
||||
return Precedence(None, el, right)
|
||||
elif isinstance(el, pr.tokenize.Token):
|
||||
return _get_number(iterator, priority)
|
||||
else:
|
||||
return el
|
||||
|
||||
|
||||
@@ -191,6 +191,12 @@ next(gen)
|
||||
#? int()
|
||||
(i for i in (1,)).send()
|
||||
|
||||
# issues with different formats
|
||||
left, right = (i for i in
|
||||
('1', '2'))
|
||||
#? str()
|
||||
left
|
||||
|
||||
|
||||
# -----------------
|
||||
# ternary operator
|
||||
|
||||
Reference in New Issue
Block a user