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
Wow, I didn't even know that from .__init__ import ... is a thing. If it works at runtime and does something useful, we should probably try to support it.
Yeah, I wouldn't really care about it if not for the fact that "Source file found twice under different module names" is a blocking error and in this case it's really hard to figure out what's causing it. So kind of painful in the context of #9636
--namespace-packages
runs into an issue if we import from__init__.py
explicitly.For instance, given:
running mypy will result in:
This issue comes up at least twice in mypy_primer's corpus.
This is correct in that you do get two entries in sys.modules, but undesirable for this to block type checking
The text was updated successfully, but these errors were encountered: