ruff/crates/red_knot_python_semantic/resources/mdtest/expression
Andrew Gallant 0f47810768 red_knot_python_semantic: improve diagnostics for unsupported boolean conversions
This mostly only improves things for incorrect arguments and for an
incorrect return type. It doesn't do much to improve the case where
`__bool__` isn't callable and leaves the union/other cases untouched
completely.

I picked this one because, at first glance, this _looked_ like a lower
hanging fruit. The conceptual improvement here is pretty
straight-forward: add annotations for relevant data. But it took me a
bit to figure out how to connect all of the pieces.
2025-04-24 11:43:01 -04:00
..
assert.md red_knot_python_semantic: improve diagnostics for unsupported boolean conversions 2025-04-24 11:43:01 -04:00
attribute.md [red-knot] Use Unknown | T_inferred for undeclared public symbols (#15674) 2025-01-24 12:47:48 +01:00
boolean.md red_knot_python_semantic: improve diagnostics for unsupported boolean conversions 2025-04-24 11:43:01 -04:00
if.md [red-knot] Add missing imports in mdtests (#15869) 2025-02-03 09:27:29 +00:00
lambda.md Fixing various spelling errors (#16924) 2025-03-23 08:08:40 +00:00
len.md [red-knot] Add initial support for * imports (#16923) 2025-03-24 17:15:58 +00:00