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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user