Commit bc9d7f8
committed
[ty] Improve
invalid-type-form diagnostic where a module-literal type is used in a type expression and the module has a member which would be valid in a type expression1 parent 02fd481 commit bc9d7f8
File tree
3 files changed
+141
-7
lines changed- crates/ty_python_semantic
- resources/mdtest
- annotations
- snapshots
- src
3 files changed
+141
-7
lines changedLines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4821 | 4821 | | |
4822 | 4822 | | |
4823 | 4823 | | |
4824 | | - | |
| 4824 | + | |
4825 | 4825 | | |
4826 | 4826 | | |
4827 | 4827 | | |
| |||
4872 | 4872 | | |
4873 | 4873 | | |
4874 | 4874 | | |
4875 | | - | |
| 4875 | + | |
| 4876 | + | |
| 4877 | + | |
4876 | 4878 | | |
4877 | 4879 | | |
4878 | 4880 | | |
| |||
4910 | 4912 | | |
4911 | 4913 | | |
4912 | 4914 | | |
4913 | | - | |
| 4915 | + | |
4914 | 4916 | | |
4915 | 4917 | | |
4916 | 4918 | | |
| |||
5048 | 5050 | | |
5049 | 5051 | | |
5050 | 5052 | | |
5051 | | - | |
| 5053 | + | |
5052 | 5054 | | |
5053 | 5055 | | |
5054 | 5056 | | |
| |||
5762 | 5764 | | |
5763 | 5765 | | |
5764 | 5766 | | |
5765 | | - | |
| 5767 | + | |
| 5768 | + | |
5766 | 5769 | | |
5767 | 5770 | | |
5768 | 5771 | | |
| |||
5789 | 5792 | | |
5790 | 5793 | | |
5791 | 5794 | | |
5792 | | - | |
| 5795 | + | |
5793 | 5796 | | |
5794 | 5797 | | |
5795 | 5798 | | |
| |||
5833 | 5836 | | |
5834 | 5837 | | |
5835 | 5838 | | |
5836 | | - | |
| 5839 | + | |
5837 | 5840 | | |
5838 | 5841 | | |
5839 | 5842 | | |
| |||
5844 | 5847 | | |
5845 | 5848 | | |
5846 | 5849 | | |
| 5850 | + | |
| 5851 | + | |
| 5852 | + | |
| 5853 | + | |
| 5854 | + | |
| 5855 | + | |
| 5856 | + | |
| 5857 | + | |
| 5858 | + | |
| 5859 | + | |
| 5860 | + | |
| 5861 | + | |
| 5862 | + | |
| 5863 | + | |
| 5864 | + | |
| 5865 | + | |
| 5866 | + | |
| 5867 | + | |
| 5868 | + | |
| 5869 | + | |
| 5870 | + | |
| 5871 | + | |
| 5872 | + | |
| 5873 | + | |
| 5874 | + | |
| 5875 | + | |
| 5876 | + | |
| 5877 | + | |
| 5878 | + | |
| 5879 | + | |
| 5880 | + | |
| 5881 | + | |
| 5882 | + | |
| 5883 | + | |
| 5884 | + | |
5847 | 5885 | | |
5848 | 5886 | | |
5849 | 5887 | | |
| |||
0 commit comments