1
0
forked from VimPlug/jedi

More small bug fixes.

This commit is contained in:
Dave Halter
2016-12-02 15:21:50 +01:00
parent dfc06dfe83
commit 565989cf07
4 changed files with 9 additions and 14 deletions

View File

@@ -166,7 +166,8 @@ def _element_calculate(evaluator, left, operator, right):
def check(obj):
"""Checks if a Jedi object is either a float or an int."""
return isinstance(obj, instance.CompiledInstance) and obj.name.name_string in ('int', 'float')
return isinstance(obj, instance.CompiledInstance) and \
obj.name.string_name in ('int', 'float')
# Static analysis, one is a number, the other one is not.
if operator in ('+', '-') and l_is_num != r_is_num \