mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-26 04:07:14 +08:00
a first very simple implementation of reachable/unreachable return statements.
This commit is contained in:
@@ -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