[PR #6026] fix(langgraph): resolve TypeError in edge sorting by handling None values #4797

Closed
opened 2026-02-20 17:50:45 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6026

State: closed
Merged: No


This PR fixes the issue with rendering the graph when opening LangGraph Studio using langgraph-cli.

File ".venv/lib/python3.13/site-packages/langgraph/pregel/_draw.py", line 206, in draw_graph
    for src, dest, is_conditional, label in sorted(edges):
                                            ~~~~~~^^^^^^^
TypeError: '<' not supported between instances of 'str' and 'NoneType'
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6026 **State:** closed **Merged:** No --- This PR fixes the issue with rendering the graph when opening LangGraph Studio using `langgraph-cli`. ``` File ".venv/lib/python3.13/site-packages/langgraph/pregel/_draw.py", line 206, in draw_graph for src, dest, is_conditional, label in sorted(edges): ~~~~~~^^^^^^^ TypeError: '<' not supported between instances of 'str' and 'NoneType' ```
yindo added the pull-request label 2026-02-20 17:50:45 -05:00
yindo closed this issue 2026-02-20 17:50:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4797