mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +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)
|
||||
types = set()
|
||||
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)
|
||||
elif typ == 'keyword':
|
||||
# For False/True/None
|
||||
|
||||
Reference in New Issue
Block a user