Commit cfb674d
committed
fix: Add Python 3.14+ compatibility with Pydantic V2
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.1 parent d7893e2 commit cfb674d
2 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
0 commit comments