Skip to content

Commit

Permalink
Update Pydantic (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani authored Apr 21, 2024
1 parent c5c52e9 commit dadba61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ classifiers = [
]
requires-python = '>=3.8'
dependencies = [
'pydantic>=2.3.0',
'pydantic>=2.7.0',
'python-dotenv>=0.21.0',
]
dynamic = ['version']
Expand Down
6 changes: 3 additions & 3 deletions requirements/pyproject.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --extra=toml --extra=yaml --output-file=requirements/pyproject.txt pyproject.toml
# pip-compile --extra=toml --extra=yaml,toml --output-file=requirements/pyproject.txt pyproject.toml
#
annotated-types==0.6.0
# via pydantic
pydantic==2.6.1
pydantic==2.7.0
# via pydantic-settings (pyproject.toml)
pydantic-core==2.16.2
pydantic-core==2.18.1
# via pydantic
python-dotenv==1.0.1
# via pydantic-settings (pyproject.toml)
Expand Down
5 changes: 3 additions & 2 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1870,10 +1870,11 @@ class Settings(BaseSettings):
s = Settings()
assert exc_info.value.errors(include_url=False) == [
{
'type': 'int_parsing',
'type': 'enum',
'loc': ('fruit',),
'msg': 'Input should be a valid integer, unable to parse string as an integer',
'msg': 'Input should be 0, 1 or 2',
'input': 'kiwi',
'ctx': {'expected': '0, 1 or 2'},
}
]

Expand Down

0 comments on commit dadba61

Please sign in to comment.