1
0
forked from VimPlug/jedi

Extract: Correct newlines for classes and make it possible to be on a return/yield statement

This commit is contained in:
Dave Halter
2020-02-23 00:24:34 +01:00
parent 876109267a
commit b7be5a4fe2
3 changed files with 36 additions and 9 deletions

View File

@@ -129,6 +129,9 @@ class AbstractContext(object):
def is_compiled(self):
return False
def is_bound_method(self):
return False
@abstractmethod
def py__name__(self):
raise NotImplementedError
@@ -190,6 +193,9 @@ class ValueContext(AbstractContext):
def is_compiled(self):
return self._value.is_compiled()
def is_bound_method(self):
return self._value.is_bound_method()
def py__name__(self):
return self._value.py__name__()