[PR #3734] Refactor deprecated copy method #3441

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

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

State: closed
Merged: No


When I installed langgraph 0.3.5, it was depending on pydantic 2.10.6.
The BaseModel class in pydantic.main has a copy() method, but it is currently deprecated and recommends using the model_copy() method. I've changed the code that uses BaseModel accordingly.
Please check it out. Thank you.

image
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/3734 **State:** closed **Merged:** No --- When I installed langgraph 0.3.5, it was depending on pydantic 2.10.6. The BaseModel class in pydantic.main has a copy() method, but it is currently deprecated and recommends using the model_copy() method. I've changed the code that uses BaseModel accordingly. Please check it out. Thank you. <img width="1338" alt="image" src="https://github.com/user-attachments/assets/aa997b6b-45af-4e0c-8a9b-0cfc917130c1" />
yindo added the pull-request label 2026-02-20 17:48:36 -05:00
yindo closed this issue 2026-02-20 17:48:36 -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#3441