[PR #2910] Import TypedDict from typing_extensions, add ruff rule #2982

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

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

State: closed
Merged: Yes


Within libs/langgraph, change all TypedDict imports to come from typing_extensions rather than typing, as pydantic doesn't like the latter.

Additionally, add a ruff rule to ban these imports too (so this doesn't regress).

Solves #2909.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/2910 **State:** closed **Merged:** Yes --- Within `libs/langgraph`, change all `TypedDict` imports to come from `typing_extensions` rather than `typing`, as `pydantic` doesn't like the latter. Additionally, add a ruff rule to ban these imports too (so this doesn't regress). Solves #2909.
yindo added the pull-request label 2026-02-20 17:47:53 -05:00
yindo closed this issue 2026-02-20 17:47:53 -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#2982