Skip to content

Commit 6ae24e5

Browse files
authored
Update pydantic to > 2.9.0 (#387)
1 parent 287cb22 commit 6ae24e5

File tree

4 files changed

+27
-25
lines changed

4 files changed

+27
-25
lines changed

requirements/linting.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
#
55
# pip-compile --no-emit-index-url --output-file=requirements/linting.txt requirements/linting.in
66
#
7-
black==24.4.2
7+
black==24.8.0
88
# via -r requirements/linting.in
99
cfgv==3.4.0
1010
# via pre-commit
1111
click==8.1.7
1212
# via black
1313
distlib==0.3.8
1414
# via virtualenv
15-
filelock==3.15.4
15+
filelock==3.16.0
1616
# via virtualenv
1717
identify==2.6.0
1818
# via pre-commit
19-
mypy==1.11.1
19+
mypy==1.11.2
2020
# via -r requirements/linting.in
2121
mypy-extensions==1.0.0
2222
# via
@@ -28,7 +28,7 @@ packaging==24.1
2828
# via black
2929
pathspec==0.12.1
3030
# via black
31-
platformdirs==4.2.2
31+
platformdirs==4.3.2
3232
# via
3333
# black
3434
# virtualenv
@@ -40,19 +40,19 @@ pyyaml==6.0.1
4040
# via
4141
# -r requirements/linting.in
4242
# pre-commit
43-
ruff==0.5.5
43+
ruff==0.6.4
4444
# via -r requirements/linting.in
45-
tokenize-rt==5.2.0
45+
tokenize-rt==6.0.0
4646
# via pyupgrade
4747
tomli==2.0.1
4848
# via
4949
# black
5050
# mypy
51-
types-pyyaml==6.0.12.20240724
51+
types-pyyaml==6.0.12.20240808
5252
# via -r requirements/linting.in
5353
typing-extensions==4.12.2
5454
# via
5555
# black
5656
# mypy
57-
virtualenv==20.26.3
57+
virtualenv==20.26.4
5858
# via pre-commit

requirements/pyproject.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ azure-identity==1.17.1
1414
# via pydantic-settings (pyproject.toml)
1515
azure-keyvault-secrets==4.8.0
1616
# via pydantic-settings (pyproject.toml)
17-
certifi==2024.7.4
17+
certifi==2024.8.30
1818
# via requests
19-
cffi==1.16.0
19+
cffi==1.17.1
2020
# via cryptography
2121
charset-normalizer==3.3.2
2222
# via requests
23-
cryptography==43.0.0
23+
cryptography==43.0.1
2424
# via
2525
# azure-identity
2626
# msal
2727
# pyjwt
28-
idna==3.7
28+
idna==3.8
2929
# via requests
3030
isodate==0.6.1
3131
# via azure-keyvault-secrets
32-
msal==1.30.0
32+
msal==1.31.0
3333
# via
3434
# azure-identity
3535
# msal-extensions
@@ -39,11 +39,11 @@ portalocker==2.10.1
3939
# via msal-extensions
4040
pycparser==2.22
4141
# via cffi
42-
pydantic==2.8.2
42+
pydantic==2.9.1
4343
# via pydantic-settings (pyproject.toml)
44-
pydantic-core==2.20.1
44+
pydantic-core==2.23.3
4545
# via pydantic
46-
pyjwt[crypto]==2.8.0
46+
pyjwt[crypto]==2.9.0
4747
# via
4848
# msal
4949
# pyjwt

requirements/testing.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
#
55
# pip-compile --no-emit-index-url --output-file=requirements/testing.txt requirements/testing.in
66
#
7-
black==24.4.2
7+
black==24.8.0
88
# via pytest-examples
99
click==8.1.7
1010
# via black
11-
coverage[toml]==7.6.0
11+
coverage[toml]==7.6.1
1212
# via -r requirements/testing.in
1313
exceptiongroup==1.2.2
1414
# via pytest
@@ -26,27 +26,27 @@ packaging==24.1
2626
# pytest
2727
pathspec==0.12.1
2828
# via black
29-
platformdirs==4.2.2
29+
platformdirs==4.3.2
3030
# via black
3131
pluggy==1.5.0
3232
# via pytest
3333
pygments==2.18.0
3434
# via rich
35-
pytest==8.3.2
35+
pytest==8.3.3
3636
# via
3737
# -r requirements/testing.in
3838
# pytest-examples
3939
# pytest-mock
4040
# pytest-pretty
41-
pytest-examples==0.0.12
41+
pytest-examples==0.0.13
4242
# via -r requirements/testing.in
4343
pytest-mock==3.14.0
4444
# via -r requirements/testing.in
4545
pytest-pretty==1.2.0
4646
# via -r requirements/testing.in
47-
rich==13.7.1
47+
rich==13.8.0
4848
# via pytest-pretty
49-
ruff==0.5.5
49+
ruff==0.6.4
5050
# via pytest-examples
5151
tomli==2.0.1
5252
# via

tests/test_settings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,14 +2170,16 @@ class Settings(BaseSettings):
21702170

21712171
def test_protected_namespace_defaults():
21722172
# pydantic default
2173-
with pytest.warns(UserWarning, match='Field "model_prefixed_field" has conflict with protected namespace "model_"'):
2173+
with pytest.warns(
2174+
UserWarning, match='Field "model_prefixed_field" in Model has conflict with protected namespace "model_"'
2175+
):
21742176

21752177
class Model(BaseSettings):
21762178
model_prefixed_field: str
21772179

21782180
# pydantic-settings default
21792181
with pytest.raises(
2180-
UserWarning, match='Field "settings_prefixed_field" has conflict with protected namespace "settings_"'
2182+
UserWarning, match='Field "settings_prefixed_field" in Model1 has conflict with protected namespace "settings_"'
21812183
):
21822184

21832185
class Model1(BaseSettings):

0 commit comments

Comments
 (0)