Python module mapping with transient dependency #17872
-
I've been having some difficultly with pants trying to infer the owners of an import. Specifically where the library name is nonstandard and transitive. A reproduce-able example is available in a standalone repository Specifically I'm using a library called
Which itself depends on a library called My
I'm running a simple script import ariadne
from graphql.execution import MiddlewareManager
if __name__ == "__main__":
print("hello world", MiddlewareManager, ariadne) Running the script gives me:
Given
Would I have to explicitly add this dependency to my |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When you import |
Beta Was this translation helpful? Give feedback.
When you import
graphql
I'd argue it's no longer a transient dependency but a direct one, and you need to add it to your list of dependencies as any other direct dependency, along with any module mappings etc as applicable.