mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-25 17:27:14 +08:00
CompiledObject.name returns a Name now, not a string. This is more consistent with the Jedi design and doesn't lead to bugs while ducktyping.
This commit is contained in:
@@ -84,7 +84,7 @@ class Instance(use_metaclass(CachedMetaClass, Executed)):
|
||||
"""
|
||||
def __init__(self, evaluator, base, var_args=()):
|
||||
super(Instance, self).__init__(evaluator, base, var_args)
|
||||
if str(base.name) in ['list', 'set'] \
|
||||
if base.name.get_code() in ['list', 'set'] \
|
||||
and compiled.builtin == base.get_parent_until():
|
||||
# compare the module path with the builtin name.
|
||||
self.var_args = iterable.check_array_instances(evaluator, self)
|
||||
|
||||
Reference in New Issue
Block a user