Skip to content
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

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

Open
matheger opened this issue Jan 14, 2023 · 0 comments
Open

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

matheger opened this issue Jan 14, 2023 · 0 comments

Comments

@matheger
Copy link

matheger commented Jan 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant