David Peter
fed35a25e8
[red-knot] Fix is_assignable_to for unions ( #14196 )
...
## Summary
Fix `Type::is_assignable_to` for union types on the left hand side (of
`.is_assignable_to`; or the right hand side of the `… = …` assignment):
`Literal[1, 2]` should be assignable to `int`.
## Test Plan
New unit tests that were previously failing.
2024-11-08 10:53:48 +01:00
..
2024-11-07 13:26:21 +01:00
2024-11-08 10:53:48 +01:00
2024-11-07 13:26:21 +01:00
2024-11-07 13:26:21 +01:00
2024-11-01 10:51:56 +00:00
2024-11-07 13:26:21 +01:00
2024-11-07 13:26:21 +01:00
2024-11-03 14:15:57 -05:00
2024-11-07 13:26:21 +01:00
2024-11-07 13:26:21 +01:00
2024-11-08 09:01:53 +00:00
2024-11-04 18:06:25 +01:00
2024-11-04 15:52:59 +01:00
2024-10-28 07:53:41 +00:00
2024-11-03 11:49:26 +00:00
2024-10-28 07:53:41 +00:00
2024-10-28 07:53:41 +00:00
2024-10-28 08:37:54 -04:00
2024-10-28 07:53:41 +00:00
2024-10-28 07:53:41 +00:00
2024-11-01 08:16:53 +01:00
2024-10-28 07:53:41 +00:00
2024-10-28 07:53:41 +00:00
2024-11-01 19:09:07 +05:30
2024-11-06 03:19:32 +00:00