from ... import module gets ignored
szabi opened this issue · 1 comments
When symbol
is a module,
from path.to import symbol
is functionally equivalent to
import path.to.symbol as symbol
However, pydeps will report a dependency on the module path.to.symbol
for the latter, however, it will only report a dependency on the module path.to
in the former case. I consider this incorrect, as it is actually depending on the module path.to.symbol
.
Ah!
The issue is something else, so I'm closing this until I can figure out what's wrong actually.
Anyway, I have the following issue:
Analyzing pkg1
, the top level modules have following statements:
from pkg1.subpackage.module1 import function1
from pkg1.subpackage.module2 import function 2
Then for the two top level modules pydeps shows a dependency on pkg1.subpackage.module1
and also pkg1.subpackage.module2
BUT also on pkg1.subpackage
, extraneously.
I'm closing this issue, because the original description was erroneous. Will open an other one if I find time to create a reproducer.