Skip to content

Conversation

@zkleb-aai
Copy link
Contributor

Fixes incompatibility with Python 3.14+ where Pydantic V1's compatibility layer (pydantic.v1) is not supported.

Changes:

  • Update setup.py to require Pydantic V2 and pydantic-settings for Python 3.14+
  • Add Python 3.12, 3.13, 3.14 to supported version classifiers
  • Enhance import logic in types.py to raise clear error message when Pydantic V2 is not available on Python 3.14+
  • Maintain backward compatibility with Python 3.8-3.13 supporting both Pydantic V1 and V2

The SDK now properly uses Pydantic V2 natively on Python 3.14+ while preserving existing behavior on earlier Python versions.

Fixes incompatibility with Python 3.14+ where Pydantic V1's
compatibility layer (pydantic.v1) is not supported.

Changes:
- Update setup.py to require Pydantic V2 and pydantic-settings
  for Python 3.14+
- Add Python 3.12, 3.13, 3.14 to supported version classifiers
- Enhance import logic in types.py to raise clear error message
  when Pydantic V2 is not available on Python 3.14+
- Maintain backward compatibility with Python 3.8-3.13 supporting
  both Pydantic V1 and V2

The SDK now properly uses Pydantic V2 natively on Python 3.14+
while preserving existing behavior on earlier Python versions.
@zkleb-aai zkleb-aai closed this Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants