Commit 2502ff7
authored
[ty] Make TypeIs invariant in its type argument (#20428)
## Summary
What it says on the tin. See the [typing
spec](https://docs.python.org/3/library/typing.html#typing.TypeIs) for
justification.
## Test Plan
Add more tests to PEP 695 `variance.md` suite.1 parent 144373f commit 2502ff7
2 files changed
Lines changed: 42 additions & 1 deletion
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
755 | 785 | | |
756 | 786 | | |
757 | 787 | | |
| |||
837 | 867 | | |
838 | 868 | | |
839 | 869 | | |
| 870 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6620 | 6620 | | |
6621 | 6621 | | |
6622 | 6622 | | |
| 6623 | + | |
6623 | 6624 | | |
6624 | 6625 | | |
6625 | 6626 | | |
| |||
6640 | 6641 | | |
6641 | 6642 | | |
6642 | 6643 | | |
6643 | | - | |
6644 | 6644 | | |
6645 | 6645 | | |
6646 | 6646 | | |
| |||
10956 | 10956 | | |
10957 | 10957 | | |
10958 | 10958 | | |
| 10959 | + | |
| 10960 | + | |
| 10961 | + | |
| 10962 | + | |
| 10963 | + | |
| 10964 | + | |
| 10965 | + | |
| 10966 | + | |
| 10967 | + | |
| 10968 | + | |
10959 | 10969 | | |
10960 | 10970 | | |
10961 | 10971 | | |
| |||
0 commit comments