I'm also wondering how to use pip installed type h...
# general
p
I'm also wondering how to use pip installed type hints. For example, I can add
grpc-stubs
to my requirements but they're not automatically used. I tried adding
//:grpc-stubs
to the
dependencies
for the targets using grpc but that didn't do the trick either.
h
Hm, I'm surprised that didn't do the trick. We're working on adding a
stubs_mapping
mechanism to teach dependency inference about type stubs - but in the meantime, the workaround is to manually add deps on the stubs like you're doing One way you could debug is to do
--no-process-execution-local-cleanup
to inspect the chroot where MyPy is running. Then use
unzip
the MyPy runner PEX there and check if it has the type stubs
p
Thanks!