ruff/crates/red_knot_python_semantic/resources/mdtest/generics
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
..
classes.md [red-knot] Attribute access and the descriptor protocol (#16416) 2025-03-07 22:03:28 +01:00
functions.md [red-knot] detect invalid return type (#16540) 2025-03-12 01:58:59 +00:00
legacy.md [red-knot] Several failing tests for generics (#16509) 2025-03-05 17:21:19 -05:00
pep695.md [red-knot] Several failing tests for generics (#16509) 2025-03-05 17:21:19 -05:00
scoping.md [red-knot] detect invalid return type (#16540) 2025-03-12 01:58:59 +00:00