cloudflare / cloudflare/cloudflare-python

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

オープン
#2,675 コメント 4 件 リアクション 4 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
506
フォーク
148
平均マージ
3時間 15分
マージ済み PR(30日)
1

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。