forked from VimPlug/jedi
fix magic_function issues with compiled module
This commit is contained in:
@@ -212,3 +212,4 @@ def _parse_function_doc(doc):
|
|||||||
|
|
||||||
|
|
||||||
builtin = PyObject(_builtins)
|
builtin = PyObject(_builtins)
|
||||||
|
magic_function_class = PyObject(type(load_module), parent=builtin)
|
||||||
|
|||||||
@@ -376,10 +376,10 @@ class Function(use_metaclass(CachedMetaClass, pr.IsScope)):
|
|||||||
return decorated_func
|
return decorated_func
|
||||||
|
|
||||||
def get_magic_function_names(self):
|
def get_magic_function_names(self):
|
||||||
return compiled.magic_function_scope(self._evaluator).get_defined_names()
|
return compiled.magic_function_class.get_defined_names()
|
||||||
|
|
||||||
def get_magic_function_scope(self):
|
def get_magic_function_scope(self):
|
||||||
return compiled.magic_function_scope(self._evaluator)
|
return compiled.magic_function_class.get_defined_names()
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
return getattr(self.base_func, name)
|
return getattr(self.base_func, name)
|
||||||
|
|||||||
Reference in New Issue
Block a user