Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #358

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pydantic_settings/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ class Settings(BaseSettings):
args = get_args(annotation)
if origin_is_union(get_origin(field.annotation)) and len(args) == 2 and type(None) in args:
for arg in args:
if arg != type(None):
if arg is not None:
annotation = arg
break

Expand Down Expand Up @@ -762,7 +762,7 @@ def explode_env_vars(self, field_name: str, field: FieldInfo, env_vars: Mapping[
if not allow_json_failure:
raise e
if isinstance(env_var, dict):
if last_key not in env_var or not isinstance(env_val, EnvNoneType) or env_var[last_key] is {}:
if last_key not in env_var or not isinstance(env_val, EnvNoneType) or env_var[last_key] == {}:
env_var[last_key] = env_val

return result
Expand Down
12 changes: 6 additions & 6 deletions requirements/linting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ click==8.1.7
# via black
distlib==0.3.8
# via virtualenv
filelock==3.15.3
filelock==3.15.4
# via virtualenv
identify==2.5.36
identify==2.6.0
# via pre-commit
mypy==1.10.0
mypy==1.11.1
# via -r requirements/linting.in
mypy-extensions==1.0.0
# via
Expand All @@ -40,19 +40,19 @@ pyyaml==6.0.1
# via
# -r requirements/linting.in
# pre-commit
ruff==0.4.10
ruff==0.5.5
# via -r requirements/linting.in
tokenize-rt==5.2.0
# via pyupgrade
tomli==2.0.1
# via
# black
# mypy
types-pyyaml==6.0.12.20240311
types-pyyaml==6.0.12.20240724
# via -r requirements/linting.in
typing-extensions==4.12.2
# via
# black
# mypy
virtualenv==20.26.2
virtualenv==20.26.3
# via pre-commit
18 changes: 8 additions & 10 deletions requirements/pyproject.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ azure-core==1.30.2
# via
# azure-identity
# azure-keyvault-secrets
azure-identity==1.17.0
azure-identity==1.17.1
# via pydantic-settings (pyproject.toml)
azure-keyvault-secrets==4.8.0
# via pydantic-settings (pyproject.toml)
certifi==2024.6.2
certifi==2024.7.4
# via requests
cffi==1.16.0
# via cryptography
charset-normalizer==3.3.2
# via requests
cryptography==42.0.8
cryptography==43.0.0
# via
# azure-identity
# msal
Expand All @@ -29,21 +29,19 @@ idna==3.7
# via requests
isodate==0.6.1
# via azure-keyvault-secrets
msal==1.28.1
msal==1.30.0
# via
# azure-identity
# msal-extensions
msal-extensions==1.1.0
msal-extensions==1.2.0
# via azure-identity
packaging==24.1
# via msal-extensions
portalocker==2.8.2
portalocker==2.10.1
# via msal-extensions
pycparser==2.22
# via cffi
pydantic==2.7.4
pydantic==2.8.2
# via pydantic-settings (pyproject.toml)
pydantic-core==2.18.4
pydantic-core==2.20.1
# via pydantic
pyjwt[crypto]==2.8.0
# via
Expand Down
10 changes: 5 additions & 5 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ black==24.4.2
# via pytest-examples
click==8.1.7
# via black
coverage[toml]==7.5.3
coverage[toml]==7.6.0
# via -r requirements/testing.in
exceptiongroup==1.2.1
exceptiongroup==1.2.2
# via pytest
iniconfig==2.0.0
# via pytest
Expand All @@ -32,21 +32,21 @@ pluggy==1.5.0
# via pytest
pygments==2.18.0
# via rich
pytest==8.2.2
pytest==8.3.2
# via
# -r requirements/testing.in
# pytest-examples
# pytest-mock
# pytest-pretty
pytest-examples==0.0.10
pytest-examples==0.0.12
# via -r requirements/testing.in
pytest-mock==3.14.0
# via -r requirements/testing.in
pytest-pretty==1.2.0
# via -r requirements/testing.in
rich==13.7.1
# via pytest-pretty
ruff==0.4.10
ruff==0.5.5
# via pytest-examples
tomli==2.0.1
# via
Expand Down
Loading