Specify working pydantic version - #272
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a compatibility issue with pydantic by restricting its version range to exclude versions >= 2.12.0, which cause a TypeError: cannot specify both default and default_factory error.
- Updated pydantic dependency constraint to cap the maximum version at 2.12.0
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
WalkthroughUpdated the pydantic dependency version constraint in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨No code suggestions found for the PR. |
|
🎉 This PR is included in version 2.10.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
User description
Pip and other package manager started resolving the pydantic dependency(used by FastMCP i believe) to versions >= 2.12.0 which seems to break with the error:
TypeError: cannot specify both default and default_factoryas described in #271
Fixes #271
PR Type
Bug fix
Description
Restrict pydantic version to <2.12.0 to avoid compatibility issues
Resolves TypeError with default and default_factory conflict
Pins working pydantic version range in dependencies
Diagram Walkthrough
File Walkthrough
pyproject.toml
Constrain pydantic version upper boundpyproject.toml
>=2.5.1to>=2.5.1,<2.12.02.12.0
parameters
Summary by CodeRabbit