Commit 2624249
authored
[red-knot] Minor: fix
## 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] #14178
## Test Plan
New unit test.Literal[True] <: int (#14177)1 parent 4b08d17 commit 2624249
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
2789 | 2789 | | |
2790 | 2790 | | |
2791 | 2791 | | |
| 2792 | + | |
2792 | 2793 | | |
2793 | 2794 | | |
2794 | 2795 | | |
| |||
0 commit comments