[PR #4888] Avoid repeated runtime calls to get_type_hints #4122

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

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

State: closed
Merged: Yes


  • Replace get_type_hints logic with much simpler implementation which only collects annotated keys (not the annotations themselves)
  • Cache annotations in a WeakKeyDictionary
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/4888 **State:** closed **Merged:** Yes --- - Replace get_type_hints logic with much simpler implementation which only collects annotated keys (not the annotations themselves) - Cache annotations in a WeakKeyDictionary
yindo added the pull-request label 2026-02-20 17:49:41 -05:00
yindo closed this issue 2026-02-20 17:49:41 -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#4122