Files
ruff/crates
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-02-07 10:59:40 +01:00
2025-02-26 06:12:43 -08:00
2025-03-21 09:17:07 -04:00