Skip to content

fix: use keys=True in MultiDiGraph.out_edges() to prevent ValueError#4938

Open
joaquinhuigomez wants to merge 1 commit intoAider-AI:mainfrom
joaquinhuigomez:fix/repomap-out-edges-keys
Open

fix: use keys=True in MultiDiGraph.out_edges() to prevent ValueError#4938
joaquinhuigomez wants to merge 1 commit intoAider-AI:mainfrom
joaquinhuigomez:fix/repomap-out-edges-keys

Conversation

@joaquinhuigomez
Copy link
Copy Markdown

@joaquinhuigomez joaquinhuigomez commented Mar 17, 2026

No description provided.

G is a MultiDiGraph, so out_edges() can return edge keys depending
on the environment/networkx configuration. Pass keys=True explicitly
and unpack all four values (src, dst, key, data) to avoid the
"too many values to unpack" ValueError.

Fixes Aider-AI#4917
@joaquinhuigomez joaquinhuigomez force-pushed the fix/repomap-out-edges-keys branch from 3755e39 to 70b5c4d Compare March 24, 2026 20:51
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

Successfully merging this pull request may close these issues.

2 participants