[PR #1557] [MERGED] Optional types for dataclass state defs #2154

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/1557
Author: @hinthornw
Created: 8/30/2024
Status: Merged
Merged: 9/6/2024
Merged by: @hinthornw

Base: mainHead: wfh/optional_dataclass_types


📝 Commits (9)

📊 Changes

2 files changed (+64 additions, -7 deletions)

View changed files

📝 libs/langgraph/langgraph/utils/fields.py (+14 -7)
📝 libs/langgraph/tests/test_state.py (+50 -0)

📄 Description

Mark those with default or default_factory as being optional


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraph/pull/1557 **Author:** [@hinthornw](https://github.com/hinthornw) **Created:** 8/30/2024 **Status:** ✅ Merged **Merged:** 9/6/2024 **Merged by:** [@hinthornw](https://github.com/hinthornw) **Base:** `main` ← **Head:** `wfh/optional_dataclass_types` --- ### 📝 Commits (9) - [`6bfe5fe`](https://github.com/langchain-ai/langgraph/commit/6bfe5fe88392a6cd07b6561e9b006dc609f52b8c) Update snapshot - [`7ff225d`](https://github.com/langchain-ai/langgraph/commit/7ff225d1f617aafbb2ffffcd93963f94b5b2b79c) Support optional dataclass state - [`eca8c60`](https://github.com/langchain-ai/langgraph/commit/eca8c603dae63c543d9e86bc00103188e327cd80) Merge branch 'main' into wfh/optional_types - [`c10e3f9`](https://github.com/langchain-ai/langgraph/commit/c10e3f98da4dc48753dbba8fe49989c9e4b0fe50) Merge - [`1606494`](https://github.com/langchain-ai/langgraph/commit/1606494436db01fab2c85d17ae01122de523cbf7) Merge - [`141ca2d`](https://github.com/langchain-ai/langgraph/commit/141ca2d6bb96b7165aad3480b21e7a356600201c) Merge - [`1433634`](https://github.com/langchain-ai/langgraph/commit/1433634f3ce5fc014de33f2c387358597867cbff) sort imports - [`1cd7f26`](https://github.com/langchain-ai/langgraph/commit/1cd7f2645d60bf1bb2b0d5bf212d31ca0b444648) who knows - [`2f5bbb3`](https://github.com/langchain-ai/langgraph/commit/2f5bbb309765a68cbc38c574f824a4f2e2fd288b) too many snakes on this gd plane ### 📊 Changes **2 files changed** (+64 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/langgraph/utils/fields.py` (+14 -7) 📝 `libs/langgraph/tests/test_state.py` (+50 -0) </details> ### 📄 Description Mark those with default or default_factory as being optional --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-20 17:46:24 -05:00
yindo closed this issue 2026-02-20 17:46:24 -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#2154