pi-lens
Version:
Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo
21 lines (20 loc) • 342 B
YAML
id: no-notimplemented-in-bool
valid:
- |
def __eq__(self, other):
return NotImplemented
- |
if x is None:
pass
- |
assert x is None
- 'bool(value)'
invalid:
- |
if NotImplemented:
do_thing()
- 'assert NotImplemented'
- 'bool(NotImplemented)'
- |
if not NotImplemented:
pass