ruff/crates/red_knot_python_semantic/resources/mdtest/expression
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
..
assert.md [red-knot] Diagnostics for incorrect bool usages (#16238) 2025-02-21 19:26:05 +01:00
attribute.md [red-knot] Use Unknown | T_inferred for undeclared public symbols (#15674) 2025-01-24 12:47:48 +01:00
boolean.md [red-knot] Add diagnostic for class-object access to pure instance variables (#16036) 2025-02-24 15:17:16 +01:00
if.md [red-knot] Add missing imports in mdtests (#15869) 2025-02-03 09:27:29 +00:00
lambda.md [red-knot] Infer lambda expression (#16547) 2025-03-11 11:25:20 +05:30
len.md [red-knot] detect invalid return type (#16540) 2025-03-12 01:58:59 +00:00