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-03-12 01:58:59 +00:00
2025-03-07 22:03:28 +01:00
2025-03-12 01:58:59 +00:00
2024-12-21 11:33:10 +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
2024-12-17 09:49:39 +05:30
2025-03-11 15:08:17 -04:00
2025-02-03 09:27:29 +00:00
2025-02-12 08:52:11 +01:00
2025-02-20 12:25:55 +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-03-06 10:41:40 +01:00
2025-01-16 11:21:56 -08:00
2025-03-12 01:58:59 +00:00
2025-03-12 01:58:59 +00:00
2025-02-04 08:27:17 +01:00
2025-03-07 22:03:28 +01:00
2025-02-05 22:26:15 +01:00
2025-03-12 01:58:59 +00:00
2025-03-07 22:03:28 +01:00
2025-03-12 01:58:59 +00:00
2025-03-07 22:03:28 +01:00
2025-02-20 23:22:26 +01:00
2025-03-11 07:58:56 -07:00
2025-02-25 20:00:38 +01:00
2025-02-21 19:26:05 +01:00
2025-03-12 01:58:59 +00:00
2024-10-31 21:00:51 +00:00
2025-03-12 01:58:59 +00:00
2025-03-11 15:08:17 -04:00
2024-12-19 21:02:14 +00:00
2025-02-03 09:27:29 +00:00
2025-03-08 03:58:52 +00:00
2025-03-04 19:49:34 +00:00
2025-02-03 09:27:29 +00:00
2025-02-04 08:27:17 +01:00
2025-03-12 01:58:59 +00:00
2025-02-04 08:27:17 +01:00
2025-01-20 09:55:54 +01:00
2025-02-20 23:22:26 +01:00
2025-02-24 09:55:34 +01:00
2025-02-06 07:15:26 +00:00
2025-02-20 23:22:26 +01:00
2025-02-05 22:26:15 +01:00
2025-03-12 01:58:59 +00:00
2025-02-21 19:26:05 +01:00
2025-02-14 12:24:10 -08:00
2025-03-08 02:36:35 +00:00