Commit 5ee02cd
authored
Now
```ini
files =
a.py,
b.py
```
and
```ini
files =
a.py,
b.py,
```
will be the same thing.
Previously, adding a traling comma would add `''` to `paths`, which
resulted in a strange error like:
```
a.py: error: Duplicate module named "a" (also at "a.py") (diff)
a.py: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules for more info (diff)
a.py: note: Common resolutions include: a) using `--exclude` to avoid checking one of them, b) adding `__init__.py` somewhere, c) using `--explicit-package-bases` or adjusting MYPYPATH (diff)
```
Refs #14240
Refs python/cpython#129708
1 parent fc991a0 commit 5ee02cd
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1300 | 1300 | | |
1301 | 1301 | | |
1302 | 1302 | | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
1303 | 1319 | | |
1304 | 1320 | | |
1305 | 1321 | | |
| |||
0 commit comments