You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/python-version-compatibility.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,6 +309,44 @@ This can happen when `__future__.annotations` interacts poorly with Pydantic's t
309
309
310
310
**Solution:** Try `--disable-future-imports` or update to Pydantic v2.
311
311
312
+
### Python 3.13 DeprecationWarning with `typing._eval_type`
313
+
314
+
When running on Python 3.13+ with `from __future__ import annotations`, you may see:
315
+
316
+
```text
317
+
DeprecationWarning: Failing to pass a value to the 'type_params' parameter
318
+
of 'typing._eval_type' is deprecated...
319
+
```
320
+
321
+
This occurs because Python 3.13 deprecated calling `typing._eval_type()` without the `type_params` parameter. Libraries that evaluate forward references (like older Pydantic versions) trigger this warning.
322
+
323
+
**Solutions:**
324
+
325
+
1.**Upgrade Pydantic** (recommended):
326
+
- Pydantic v1: Upgrade to version 1.10.18 or later
327
+
- Pydantic v2: Upgrade to the latest version
328
+
329
+
2.**Use `--disable-future-imports`** as a workaround:
0 commit comments