From 7925db3ca26014c0e9938a64b95ccf02a6c7932b Mon Sep 17 00:00:00 2001 From: JRoot Junior Date: Wed, 18 Sep 2024 21:45:53 +0300 Subject: [PATCH] Update pydantic version constraints based on Python version Adjusted the version constraints for the pydantic library in `pyproject.toml` to ensure compatibility with different Python versions. This helps maintain stability and compatibility across various development environments. --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2bf64c04..4e1d1e69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,8 @@ classifiers = [ dependencies = [ "magic-filter>=1.0.12,<1.1", "aiohttp>=3.9.0,<3.11", - "pydantic>=2.4.1,<2.10", + "pydantic>=2.4.1,<2.9; python_version < '3.10'", + "pydantic>=2.4.1,<2.10; python_version >= '3.10'", "aiofiles>=23.2.1,<24.2", "certifi>=2023.7.22", "typing-extensions>=4.7.0,<=5.0",