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.ini module-specific override doesn't work without __init__.py #9974
I'm not using --namespace-packages. I think you're right that the file was not checked before, so this is not so much as a regression as a pre-existing bug that got exposed by recent changes.
Activity
hauntsaninja commentedon Jan 26, 2021
Are you using
--namespace-packages? (It's probably not a regression as much as mypy previously just didn't checkc.py)JelleZijlstra commentedon Jan 26, 2021
I'm not using
--namespace-packages. I think you're right that the file was not checked before, so this is not so much as a regression as a pre-existing bug that got exposed by recent changes.hauntsaninja commentedon Jan 26, 2021
You'll need to use
--namespace-packagesfor mypy to treata/b/c.pyasa.b.cinstead ofc. Alternatively, you can add__init__.pytoa/b.hauntsaninja commentedon Jan 26, 2021
So I don't think that there is a bug here, although mypy should make
--namespace-packagesthe default (#9636)