mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Another conversion.
This commit is contained in:
@@ -272,7 +272,7 @@ class Evaluator(object):
|
|||||||
debug.dbg('eval_element %s@%s', element, element.start_pos)
|
debug.dbg('eval_element %s@%s', element, element.start_pos)
|
||||||
types = set()
|
types = set()
|
||||||
typ = element.type
|
typ = element.type
|
||||||
if isinstance(element, (tree.Name, tree.Literal)) or typ == 'atom':
|
if typ in ('name', 'number', 'string', 'atom'):
|
||||||
types = self.eval_atom(context, element)
|
types = self.eval_atom(context, element)
|
||||||
elif typ == 'keyword':
|
elif typ == 'keyword':
|
||||||
# For False/True/None
|
# For False/True/None
|
||||||
|
|||||||
Reference in New Issue
Block a user