From 50bb82964d6d0d44cb7618fe78a4ce0389787759 Mon Sep 17 00:00:00 2001 From: leiserfg Date: Tue, 30 Dec 2025 11:42:46 +0100 Subject: [PATCH] Fix pydantic v2 warning --- .github/workflows/ci.yml | 2 +- pyproject.toml | 5 +++-- uplink/converters/pydantic_v2.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ea658f2..613537fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["310", "311", "312", "313"] + python-version: ["310", "311", "312", "313", "314"] steps: - name: Checkout repository diff --git a/pyproject.toml b/pyproject.toml index 28713298..b0c5c798 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = 'uplink' -version = '0.10.0' +version = '0.10.1' description = 'A Declarative HTTP Client for Python.' readme = 'README.md' maintainers = [{ name = 'P. Raj Kumar', email = 'raj.pritvi.kumar@gmail.com' }] @@ -33,6 +33,7 @@ classifiers = [ 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', @@ -70,7 +71,7 @@ twisted=1 [tool.tox] -env_list = ["py310", "py311", "py312", "py313"] +env_list = ["py310", "py311", "py312", "py313", "py314"] [tool.tox.testenv] runner = "uv-venv-lock-runner" diff --git a/uplink/converters/pydantic_v2.py b/uplink/converters/pydantic_v2.py index a7da4424..a508228f 100644 --- a/uplink/converters/pydantic_v2.py +++ b/uplink/converters/pydantic_v2.py @@ -36,4 +36,4 @@ def convert(self, response): except AttributeError: data = response - return self._model.parse_obj(data) + return self._model.model_validate(data)