You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Python files can disappear from the graph when a class is used before it's defined #4334
app.py imports Widget the class instead of widget.py the file
the call from Helper.make to Widget.draw is missing, while the same call from app.py is there
What should happen
widget.py should be in the graph like any other file, and the Widget it mentions should just point to the class defined lower down in the same file.
How much it matters
I checked graphify's call links against Jedi on rich. On 0.9.85, with this fixed, graphify finds 54 more correct calls, going from 64.6% to 68.6%, with no wrong links added and none lost. Both missing files come back too.
changed the title [-]Python files can disappear from the graph when a class is used before it's defined[/-][+][Bug]: Python files can disappear from the graph when a class is used before it's defined[/+]on Oct 11, 2026
Activity
github-actions commentedon Oct 11, 2026
Thanks for opening this issue, @smngvlkz. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
[-]Python files can disappear from the graph when a class is used before it's defined[/-][+][Bug]: Python files can disappear from the graph when a class is used before it's defined[/+]fix(extract): only redirect a file-stem forward ref to a local class (G…
fix(extract): keep Python file node when a same-named class is forwar…
fix(extract): only redirect a file-stem forward ref to a local class (#…
safishamsi commentedon Oct 12, 2026
Fixed in v0.9.88 (
graphifyy 0.9.88on PyPI) via #4343.