mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-22 07:32:25 +02:00
The second `if hasattr(t, "__origin__")` block was unreachable — the first branch always returned, so Required[T] / NotRequired[T] resolved to the bare class instead of the inner type. Check Required/NotRequired before the generic __origin__ fallback. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>