Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[red-knot] Minor: fix
Literal[True] <: int
(astral-sh#14177)
## Summary Minor fix to `Type::is_subtype_of` to make sure that Boolean literals are subtypes of `int`, to match runtime semantics. Found this while doing some property-testing experiments [1]. [1] astral-sh#14178 ## Test Plan New unit test.
- Loading branch information