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 lambda defaults call unrelated same-file functions when enclosing parameters shadow them #5418
A call in a lambda default can link to a same-file module function even when an enclosing function parameter binds that name. The extractor emits an EXTRACTED calls edge to the module function. The call goes through a parameter whose target is unknown to the extractor.
Expected neither edge. factory(lambda: "parameter")() and outer(lambda: "parameter")()() both return "parameter".
Environment and related work
Reproduced from source on Linux with Python 3.12, Graphify 0.9.115, at v8 commit a3db62f680cd and draft #5417's original head ba96a3d7616f. The reproducer uses structural extraction without provider credentials.
The same-file bare-call lookup can select a module symbol before checking enclosing function bindings. The regression should cover both the function parameter and the captured parameter while preserving genuine local callables and explicit imports.
Activity
github-actions commentedon Nov 23, 2026
Thanks for opening this issue, @melhusl-hs. 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.
fix(python): compare effective names in lambda shadowing
fix(python): compare effective names in lambda shadowing
fix(python): compare effective names in lambda shadowing
fix(python): compare effective names in lambda shadowing
chore(release): schema 55, 0.9.120 changelog for the #5441..#5419 batch
fix(python): stop a function local import call binding to a same file…
fix(python): stop a function local import call binding to a same file…