1
0
forked from VimPlug/jedi

Remove the wrapper from the class.

This commit is contained in:
Dave Halter
2016-11-28 09:49:37 +01:00
parent f6070496ad
commit 481a917ada
3 changed files with 14 additions and 19 deletions

View File

@@ -56,6 +56,16 @@ class Context(object):
def create_context(self, node):
return self.evaluator.create_context(self, node)
def is_class(self):
return False
def py__bool__(self):
"""
Since Wrapper is a super class for classes, functions and modules,
the return value will always be true.
"""
return True
class TreeContext(Context):
def __init__(self, evaluator, parent_context=None):