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
{{ message }}
Repository navigation
Mypy will not automatically check files with multiple dots in their names #9833
As it happens, this is no longer the behaviour on master.
This is a side effect of #9742 making mypy dir/ behave more like mypy file.py. mypy already allowed mypy a.b.py, so it works with the recursive invocation now.
Note that all versions associate the file with the incorrect module name "a.b". I tried to improve this, but it caused a couple issues and I backtracked to keep the PR surface smaller. See point 2 of #9742 (comment)
Activity
gvanrossum commentedon Dec 23, 2020
Those are not legal Python file names anyway.
hauntsaninja commentedon Dec 23, 2020
As it happens, this is no longer the behaviour on master.
This is a side effect of #9742 making
mypy dir/behave more likemypy file.py. mypy already allowedmypy a.b.py, so it works with the recursive invocation now.Note that all versions associate the file with the incorrect module name "a.b". I tried to improve this, but it caused a couple issues and I backtracked to keep the PR surface smaller. See point 2 of #9742 (comment)
find_sources: deal more robustly against filenames with periods