1
0
forked from VimPlug/jedi

Fix the last remaining issues with function signature

This commit is contained in:
Dave Halter
2019-07-31 18:29:41 +02:00
parent 97b642a3e1
commit 7d2374ed81
4 changed files with 20 additions and 8 deletions

View File

@@ -399,8 +399,14 @@ class BoundMethod(FunctionMixin, ContextWrapper):
function_execution = self.get_function_execution(arguments)
return function_execution.infer()
def get_signature_functions(self):
return [
BoundMethod(self.instance, f)
for f in self._wrapped_context.get_signature_functions()
]
def get_signatures(self):
return [sig.bind(self, self) for sig in self._wrapped_context.get_signatures()]
return [sig.bind(self) for sig in super(BoundMethod, self).get_signatures()]
def __repr__(self):
return '<%s: %s>' % (self.__class__.__name__, self._wrapped_context)