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 committed 2019-05-05 13:23:29 +02:00
1 parent 4d3a698a12
commit 329270e444
4 files changed
+29 -10

No files matched your search

+6 -4
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,