namespace package import error is order-dependent and not silenceable with ignore_missing_imports
#17210
Labels
bug
mypy got something wrong
Bug Report
my minimal reproduction unfortunately requires some third party dependencies but I've tried to make it as self-contained as possible:
To Reproduce
Expected Behavior
I expect it to produce no errors
Actual Behavior
what's even stranger is if the
bigtable
import is commented out it passes:I suspect something to do with namespace packages since
google.*
is a big bunch of them -- it also has variouspy.typed
files which should have some things typed and others not --google.cloud.pubsub_v1
does not have one of those (not to be confused withgoogle.pubsub_v1
which does have one):I don't think the other directories have an effect as I deleted everything but the bigtable and pubsub_v1 directories and it still reproduces
Your Environment
mypy.ini
(and other config files): see aboveThe text was updated successfully, but these errors were encountered: