a first very simple implementation of reachable/unreachable return statements.
This commit is contained in:
1 parent
f5e49e3218
commit
15ec0a77fe
3 files changed
+22
-8
No files matched your search
@@ -48,6 +48,9 @@ class CompiledObject(Base):
|
||||
def py__mro__(self, evaluator):
|
||||
return tuple(create(evaluator, cls) for cls in self.obj.__mro__)
|
||||
|
||||
def py__bool__(self):
|
||||
return bool(self.obj)
|
||||
|
||||
@property
|
||||
def doc(self):
|
||||
return inspect.getdoc(self.obj) or ''
|
||||
|
||||
Reference in new issue
Block a user