Dhruv Manilawala
177afabe18
[red-knot] Callable types are disjoint from literals ( #17160 )
...
## Summary
A callable type is disjoint from other literal types. For example,
`Type::StringLiteral` must be an instance of exactly `str`, not a
subclass of `str`, and `str` is not callable. The same applies to other
literal types.
This should hopefully fix #17144 , I couldn't produce any failures after
running property tests multiple times.
## Test Plan
Add test cases for disjointness check between callable and other literal
types.
Run property tests multiple times.
2025-04-03 03:38:13 +05:30
..
2025-04-02 09:27:46 +02:00
2025-04-01 15:44:02 +01:00
2025-04-02 21:25:57 +00:00
2024-12-21 11:33:10 +01:00
2025-03-12 01:58:59 +00:00
2025-04-02 09:27:46 +02:00
2025-03-28 11:11:56 -04:00
2025-03-12 01:58:59 +00:00
2025-03-17 10:35:52 -04:00
2024-12-17 09:49:39 +05:30
2025-03-14 20:34:43 +01:00
2025-04-01 19:03:42 +01:00
2025-02-12 08:52:11 +01:00
2025-03-23 08:08:40 +00:00
2025-03-24 17:15:58 +00:00
2025-04-02 10:02:59 +00:00
2025-03-23 13:23:12 +00:00
2025-03-24 18:23:02 +00:00
2025-01-16 11:21:56 -08:00
2025-03-17 10:35:52 -04:00
2025-03-31 23:38:09 +00:00
2025-02-04 08:27:17 +01:00
2025-04-02 09:27:46 +02:00
2025-02-05 22:26:15 +01:00
2025-03-28 11:11:56 -04:00
2025-03-23 10:55:14 -07:00
2025-04-02 09:27:46 +02:00
2025-04-02 09:27:46 +02:00
2025-02-20 23:22:26 +01:00
2025-04-03 03:38:13 +05:30
2025-03-14 12:30:13 +01:00
2025-03-17 10:35:52 -04:00
2025-03-12 01:58:59 +00:00
2024-10-31 21:00:51 +00:00
2025-04-02 09:27:46 +02:00
2025-04-02 09:27:46 +02:00
2025-04-02 09:27:46 +02:00
2024-12-19 21:02:14 +00:00
2025-03-20 17:17:54 +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-04-02 09:27:46 +02:00
2025-04-02 09:27:46 +02:00
2025-03-19 07:36:28 -07:00
2025-03-14 12:29:57 +01:00
2025-02-06 07:15:26 +00:00
2025-02-20 23:22:26 +01:00
2025-04-02 09:27:46 +02:00
2025-03-12 01:58:59 +00:00
2025-03-28 20:23:04 +00:00
2025-02-14 12:24:10 -08:00
2025-03-08 02:36:35 +00:00
2025-04-02 19:39:44 +02:00