cloudflare / cloudflare/cloudflare-python

Warning: “Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater” when importing cloudflare

Đang mở
#2,675 4 bình luận 4 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
506
Fork
148
Merge trung bình
3 giờ 15 phút
Pull request đã merge (30 ngày)
1

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.