Commit 2f1c143
authored
Fix internal mypy error on Windows (pytest-dev#13153)
When running `pre-commit` on Windows, I get the error below:
```
src\_pytest\_py\error.py:95: error: Invalid index type "Optional[int]" for "dict[int, int]"; expected type "int" [index]
Found 1 error in 1 file (checked 234 source files)
```
Ignore the error because we do catch the `KeyError` anyway.1 parent 4a6a512 commit 2f1c143
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
0 commit comments