We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c480f3a commit afd10b3Copy full SHA for afd10b3
cmd2/pyscript_bridge.py
@@ -38,7 +38,7 @@ def __bool__(self) -> bool:
38
39
# If data has a __bool__ method, then call it to determine success of command
40
if self.data is not None and callable(getattr(self.data, '__bool__', None)):
41
- return True if self.data else False
+ return bool(self.data)
42
43
# Otherwise check if stderr was filled out
44
else:
0 commit comments