mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
InstanceElement should always be the same, cache them
This commit is contained in:
@@ -255,6 +255,8 @@ class Instance(Executable):
|
||||
|
||||
|
||||
class InstanceElement(object):
|
||||
__metaclass__ = CachedMetaClass
|
||||
|
||||
def __init__(self, instance, var):
|
||||
if isinstance(var, parsing.Function):
|
||||
var = Function(var)
|
||||
|
||||
Reference in New Issue
Block a user