1
0
forked from VimPlug/jedi

Add is_compiled and a few other things to be more compatible with the new way of handling stubs

This commit is contained in:
Dave Halter
2019-05-05 13:23:29 +02:00
parent 4d3a698a12
commit 329270e444
4 changed files with 29 additions and 10 deletions

View File

@@ -111,10 +111,6 @@ class Context(HelperContextMixin, BaseContext):
To be defined by subclasses.
"""
tree_node = None
stub_context = None
def is_stub(self):
return False
@property
def api_type(self):
@@ -158,6 +154,12 @@ class Context(HelperContextMixin, BaseContext):
def is_module(self):
return False
def is_stub(self):
return False
def is_compiled(self):
return False
def py__bool__(self):
"""
Since Wrapper is a super class for classes, functions and modules,