ruff/crates/red_knot_python_semantic/resources/mdtest/with
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.md [red-knot] Cleanup various todo_type!() messages (#15063) 2024-12-19 13:03:41 +00:00
sync.md [red-knot] detect invalid return type (#16540) 2025-03-12 01:58:59 +00:00