#1579 Fixed Default object annotation resolution in pydantic models. (#1580)

* #1579 Fixed `Default` object annotation resolution in `pydantic` models. Reformat code.

* Bump mongo and Redis dependencies

* 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.

* Adjust version

* Fixed typo
This commit is contained in:
Alex Root Junior 2024-09-18 22:45:19 +03:00 committed by GitHub
parent b7d61b6379
commit f9f847f603
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 7 deletions

View file

@ -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.9'", # v2.9 breaks compatibility with Python 3.8 without any reason
"pydantic>=2.4.1,<2.10; python_version >= '3.9'",
"aiofiles>=23.2.1,<24.2",
"certifi>=2023.7.22",
"typing-extensions>=4.7.0,<=5.0",
@ -59,10 +60,10 @@ fast = [
"aiodns>=3.0.0",
]
redis = [
"redis[hiredis]~=5.0.1",
"redis[hiredis]>=5.0.1,<5.1.0",
]
mongo = [
"motor~=3.3.2",
"motor>=3.3.2,<3.7.0",
]
proxy = [
"aiohttp-socks~=0.8.3",