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
..
2025-02-05 22:26:15 +01:00
2025-02-05 22:26:15 +01:00
2025-02-25 14:02:03 +00:00
2025-02-25 14:02:03 +00:00
2025-02-25 14:02:03 +00:00
2025-02-25 14:02:03 +00:00
2025-02-25 14:02:03 +00:00
2025-02-25 14:02:03 +00:00
2025-02-25 14:02:03 +00:00
2025-03-12 01:58:59 +00:00
2025-02-25 20:38:15 +01:00
2025-02-25 14:02:03 +00:00
2025-03-12 01:58:59 +00:00
2025-03-12 01:58:59 +00:00
2025-03-12 01:58:59 +00:00
2025-02-25 20:38:15 +01:00
2025-02-25 14:02:03 +00:00
2025-02-25 14:02:03 +00:00
2025-02-25 14:02:03 +00:00
2025-02-21 19:26:05 +01:00
2025-02-19 08:24:19 -05:00
2025-02-25 09:58:08 +01:00
2025-02-19 08:24:19 -05:00
2025-02-19 08:24:19 -05:00
2025-02-19 08:24:19 -05:00
2025-02-19 08:24:19 -05:00
2025-02-19 08:24:19 -05:00
2025-02-19 08:24:19 -05:00
2025-02-19 08:24:19 -05:00
2025-02-19 08:24:19 -05:00
2025-02-19 08:24:19 -05:00
2025-02-19 08:24:19 -05:00
2025-02-25 20:38:15 +01:00
2025-02-19 08:24:19 -05:00
2025-02-19 08:24:19 -05:00
2025-02-21 19:26:05 +01:00
2025-03-11 15:08:17 -04:00
2025-02-21 19:26:05 +01:00
2025-03-12 01:58:59 +00:00
2025-03-12 01:58:59 +00:00
2025-03-12 01:58:59 +00:00
2025-03-12 01:58:59 +00:00
2025-02-21 19:26:05 +01:00
2025-02-21 19:26:05 +01:00
2025-02-21 19:26:05 +01:00
2025-02-25 14:02:03 +00:00
2025-02-06 15:36:22 +01:00
2025-02-06 15:36:22 +01:00
2025-02-05 22:26:15 +01:00
2025-02-05 22:26:15 +01:00
2025-02-05 22:26:15 +01:00
2025-02-05 22:26:15 +01:00
2025-02-05 22:26:15 +01:00
2025-02-05 14:01:58 -05:00