ruff/crates/red_knot_python_semantic/resources/mdtest/loops
Shunsuke Shibayama 78b5f0b165
[red-knot] detect invalid return type (#16540)
## Summary

This PR closes #16248.

If the return type of the function isn't assignable to the one
specified, an `invalid-return-type` error occurs.
I thought it would be better to report this as a different kind of error
than the `invalid-assignment` error, so I defined this as a new error.

## Test Plan

All type inconsistencies in the test cases have been replaced with
appropriate ones.

---------

Co-authored-by: Carl Meyer <carl@astral.sh>
2025-03-12 01:58:59 +00:00
..
async_for.md [red-knot] Meta data for Type::Todo (#14500) 2024-11-21 09:59:47 +01:00
for.md [red-knot] detect invalid return type (#16540) 2025-03-12 01:58:59 +00:00
iterators.md [red-knot] detect invalid return type (#16540) 2025-03-12 01:58:59 +00:00
while_loop.md [red-knot] Diagnostics for incorrect bool usages (#16238) 2025-02-21 19:26:05 +01:00