Skip to content

Commit dadba61

Browse files
authored
Update Pydantic (#273)
1 parent c5c52e9 commit dadba61

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ classifiers = [
4040
]
4141
requires-python = '>=3.8'
4242
dependencies = [
43-
'pydantic>=2.3.0',
43+
'pydantic>=2.7.0',
4444
'python-dotenv>=0.21.0',
4545
]
4646
dynamic = ['version']

requirements/pyproject.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
5-
# pip-compile --extra=toml --extra=yaml --output-file=requirements/pyproject.txt pyproject.toml
5+
# pip-compile --extra=toml --extra=yaml,toml --output-file=requirements/pyproject.txt pyproject.toml
66
#
77
annotated-types==0.6.0
88
# via pydantic
9-
pydantic==2.6.1
9+
pydantic==2.7.0
1010
# via pydantic-settings (pyproject.toml)
11-
pydantic-core==2.16.2
11+
pydantic-core==2.18.1
1212
# via pydantic
1313
python-dotenv==1.0.1
1414
# via pydantic-settings (pyproject.toml)

tests/test_settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,10 +1870,11 @@ class Settings(BaseSettings):
18701870
s = Settings()
18711871
assert exc_info.value.errors(include_url=False) == [
18721872
{
1873-
'type': 'int_parsing',
1873+
'type': 'enum',
18741874
'loc': ('fruit',),
1875-
'msg': 'Input should be a valid integer, unable to parse string as an integer',
1875+
'msg': 'Input should be 0, 1 or 2',
18761876
'input': 'kiwi',
1877+
'ctx': {'expected': '0, 1 or 2'},
18771878
}
18781879
]
18791880

0 commit comments

Comments
 (0)