1
0
forked from VimPlug/jedi

Change signature a little bit

This commit is contained in:
Dave Halter
2018-11-11 22:36:05 +01:00
parent 3ecae30b5c
commit a73c7092bb
4 changed files with 19 additions and 18 deletions

View File

@@ -220,7 +220,7 @@ class AbstractInstanceContext(Context):
def get_signatures(self):
init_funcs = self.py__getattribute__('__call__')
return [sig.bind() for sig in init_funcs.get_signatures()]
return [sig.bind(self) for sig in init_funcs.get_signatures()]
def __repr__(self):
return "<%s of %s(%s)>" % (self.__class__.__name__, self.class_context,
@@ -427,7 +427,7 @@ class BoundMethod(FunctionMixin, ContextWrapper):
yield BoundMethod(self.instance, self.class_context, func)
def get_signatures(self):
return [sig.bind() for sig in self._wrapped_context.get_signatures()]
return [sig.bind(self) for sig in self._wrapped_context.get_signatures()]
def __repr__(self):
return '<%s: %s>' % (self.__class__.__name__, self._wrapped_context)