ruff/crates/red_knot_python_semantic/resources/mdtest/subscript
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
..
bytes.md [red-knot] detect invalid return type (#16540) 2025-03-12 01:58:59 +00:00
class.md [red-knot] detect invalid return type (#16540) 2025-03-12 01:58:59 +00:00
instance.md [red-knot] Use Unknown | T_inferred for undeclared public symbols (#15674) 2025-01-24 12:47:48 +01:00
lists.md [red-knot] Add support for @classmethods (#16305) 2025-02-24 09:55:34 +01:00
stepsize_zero.md [red-knot] have mdformat wrap mdtest files to 100 columns (#14020) 2024-10-31 21:00:51 +00:00
string.md [red-knot] Add support for @classmethods (#16305) 2025-02-24 09:55:34 +01:00
tuple.md [red-knot] Attribute access and the descriptor protocol (#16416) 2025-03-07 22:03:28 +01:00