pyan icon indicating copy to clipboard operation
pyan copied to clipboard

Call graphs are wrong -- don't respect namespaces

Open matheger opened this issue 1 year ago • 0 comments

Using pyan3==1.1.1.

test1.py:

myfunc()

test2.py:

def myfunc():
    ...

results in the following call graph: fff

Which is, of course, catastrophically wrong, because test1 does not use the function from test2 (note the lack of imports). As I'm currently trying to untangle a codebase with this exact problem, this completely breaks pyan3 for me.

matheger avatar Jan 14 '23 22:01 matheger