1
0
forked from VimPlug/jedi

Try to use a CompiledStubClass to wrap functions inside classes

This commit is contained in:
Dave Halter
2018-11-18 17:43:46 +01:00
parent 75203c55f8
commit 8b039287c8
4 changed files with 48 additions and 35 deletions
+3 -3
View File
@@ -3,12 +3,12 @@ from abc import abstractproperty
class AbstractSignature(object):
def __init__(self, context, is_bound=False):
self._context = context
self.context = context
self.is_bound = is_bound
@abstractproperty
def name(self):
return self._context.name
return self.context.name
def annotation(self):
return None
@@ -44,7 +44,7 @@ class TreeSignature(AbstractSignature):
class BuiltinSignature(AbstractSignature):
@property
def _function_context(self):
return self._context
return self.context
def bind(self):
raise NotImplementedError('pls implement, need test case')