Commit 9c05d3d
authored
(minor) Short circuit call to
When debugging #11887 I realised `can_be_type_alias` can do non-trivial
amounts of work. It's unlikely to ever show up on a profile,
but reordering the check means we do less work. Changed the order of
some other checks for consistency.
Co-authored-by: hauntsaninja <>can_be_type_alias when using PEP 613 (#11904)1 parent ba0e9d6 commit 9c05d3d
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2666 | 2666 | | |
2667 | 2667 | | |
2668 | 2668 | | |
2669 | | - | |
| 2669 | + | |
2670 | 2670 | | |
2671 | 2671 | | |
2672 | 2672 | | |
| |||
2693 | 2693 | | |
2694 | 2694 | | |
2695 | 2695 | | |
2696 | | - | |
| 2696 | + | |
2697 | 2697 | | |
2698 | 2698 | | |
2699 | 2699 | | |
| |||
2706 | 2706 | | |
2707 | 2707 | | |
2708 | 2708 | | |
2709 | | - | |
| 2709 | + | |
2710 | 2710 | | |
2711 | 2711 | | |
2712 | 2712 | | |
| |||
0 commit comments