You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow trailing commas for files setting in mypy.ini and setup.ini (#18621)
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
0 commit comments