ruff/crates/red_knot_python_semantic/resources/mdtest/expression/assert.md

269 B

Condition with object that implements __bool__ incorrectly

class NotBoolable:
    __bool__ = 3

# error: [unsupported-bool-conversion] "Boolean conversion is unsupported for type `NotBoolable`; its `__bool__` method isn't callable"
assert NotBoolable()