Technologicat / pyan

Static call graph generator. The official Python 3 version. Development repo.
GNU General Public License v2.0
323 stars 56 forks source link

Call graphs are wrong -- don't respect namespaces #88

Open matheger opened 1 year ago

matheger commented 1 year ago

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.