-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different types of imports get disconnected. #224
Comments
I'm not sure what you are asking...? Generally, you'll need to
1-3 lets me know if your understanding and usage is reasonable, and 4 makes it possible for me to debug the issue and provide a solution. |
It's a bit of a weird example, but I am trying to demonstrate that I can use pydeps to detect circular imports. I am expecting the generated diagram to show the circular dependency, where func1 and func2 would be caught in a circle attempting to import each other via the importer. I am mixing importing directly, ie
|
If we look at your importer function:
and display the corresponding byte code:
Yes, it would be theoretically possible, e.g. using dataflow analysis and whole-program analysis, but If you look at the bytecode for a "normal" import:
You'll see the Pydeps can unfortunately, but by design, not follow dynamic imports. |
I have a project that combines two different import methods:
import a from b
and import c
I am just making up this example, and will show more details if necessary.
I am using
pydeps . --include-missing
Here is the generated graph.
The text was updated successfully, but these errors were encountered: