LangChain: Python 3.14 Compatibility Fix
Developer mdrxy merged a fix preventing Pydantic v1 import warnings when using LangChain with Python 3.14 and later versions. The solution implements lazy loading to avoid compatibility warnings during module imports.
Duration: PT1M41S
Episode overview
This episode is a short developer briefing from LangChain.
It explains recent repository work in plain language.
- Show: LangChain
- Published: 2026-05-10T10:01:11Z
- Audio duration: PT1M41S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning, this is your LangChain development briefing for May 10th, 2026.
Developer mdrxy merged PR #37308, fixing a Python 3.14 compatibility issue in the core deprecation module. The problem was that LangChain was eagerly importing Pydantic v1 functionality at module scope, triggering warnings about Python 3.14 incompatibility every time users imported langchain_core. The fix replaces…
The pull request includes 68 lines of changes across two files - the main deprecation module and new unit tests. The testing suite now includes a subprocess-based regression test to ensure importing the deprecation module doesn't pull any Pydantic v1 modules into system memory, plus coverage for the previously…
This represents the only development activity in the repository today, with the same fix appearing as commit 8b21400 by Mason Daugherty.
What's next: This change ensures smoother adoption of Python 3.14 when it becomes available. The lazy loading pattern may be applied to other Pydantic v1 dependencies as the codebase continues migrating to newer versions.
That's your LangChain update for today. Back tomorrow with more development news.
Nearby episodes from LangChain
- Message Serialization and Provider Compatibility Fixes
- V3 Streaming Message Assembly Fixes
- Version 1.3.0 Release and CI Security Updates
- Core 1.4.0 Release and Major Version Bump
- Agent Streaming Fix and Version Release
- Critical Security Patch and Hub Deprecation
- Schema Resolution Fix and Alpha Release
- Security Fortress - Hardening Against Untrusted Code