Commit 8118ef6
committed
conformance -
It was previously failing only for pyright but added it for all type checkers just to be sure.
```
Traceback (most recent call last):
File "L:\Projects\Github\typing\conformance\src\main.py", line 260, in <module>
main()
File "L:\Projects\Github\typing\conformance\src\main.py", line 253, in main
run_tests(root_dir, type_checker, test_cases, skip_timing=options.skip_timing)
File "L:\Projects\Github\typing\conformance\src\main.py", line 34, in run_tests
type_checker.parse_errors(output.splitlines())
File "L:\Projects\Github\typing\conformance\src\type_checker.py", line 206, in parse_errors
assert line.count(":") >= 3, f"Failed to parse line: {line!r}"
^^^^^^^^^^^^^^^^^^^^
AssertionError: Failed to parse line: 'Â\xa0Â\xa0Use list[T] to indicate a list type or T1 | T2 to indicate a union type (reportInvalidTypeForm)'
```
Update type_checker.pysubprocess.run to use utf-8 to avoid issues on Windows1 parent dde9ec4 commit 8118ef6
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
0 commit comments