ruff/crates/red_knot_python_semantic/resources/mdtest/unary
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
..
custom.md [red-knot] improve function/bound method type display (#17294) 2025-04-14 15:56:18 -07:00
integers.md [red-knot] Autoformat mdtest Python snippets using blacken-docs (#13809) 2024-10-19 15:57:06 +01:00
invert_add_usub.md [red-knot] Add __init__ arguments check when doing try_call on a class literal (#16512) 2025-04-08 17:26:20 -04:00
not.md red_knot_python_semantic: improve diagnostics for unsupported boolean conversions 2025-04-24 11:43:01 -04:00