cloudflare / cloudflare/cloudflare-python
Warning: “Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater” when importing cloudflare
- Lingua principale
- Python
- Stelle
- 506
- Fork
- 148
- Merge medio
- 3h 15m
- PR unite (30g)
- 1
Descrizione
### Confirm this is a Python library issue and not an underlying Cloudflare API issue.
- [x] This is an issue with the Python library
### Describe the bug
When importing the cloudflare package under Python 3.14, a UserWarning appears from the _compat.py module:
```
/.../.venv/lib/python3.14/site-packages/cloudflare/_compat.py:48: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
from pydantic.v1.typing import (
```
The library uses Pydantic v2 for its models, but still imports from the pydantic.v1 namespace for compatibility. This warning originates from Pydantic itself, which now emits it on Python ≥ 3.14.
### To Reproduce
```
python3.14 -m venv .venv
source .venv/bin/activate
pip install cloudflare
python -c "import cloudflare; print(cloudflare.__version__)"
```
### Code snippets
```Python
```
### OS
Linux
### Python version
3.14
### Library version
4.3.1
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo l’avviso con il comando Python 3.14 dell’issue, quindi esamina cloudflare/_compat.py attorno all’importazione da pydantic.v1.typing. Verifica come i modelli Pydantic v2 del pacchetto utilizzano questo modulo di compatibilità. Il lavoro è completato quando l’importazione di cloudflare su Python 3.14 non emette più la UserWarning segnalata e il comportamento supportato rimane intatto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100