11
0
Files
python-pydantic-settings/use-typing_objects.patch
Daniel Garcia dfc15150f2 - Update to 2.10.1
* Fix UnboundLocalError error in _replace_field_names_case_insensitively
  * Remove unknown file reference in documentation
  * Prepare release 2.10.1
- Update to 2.10.0
  * Fix running tests when azure-keyvault-secrets is not installed
  * Fix running tests when google-cloud-secret-manager is not installed
  * Support loading a specific nested key from YAML in YamlConfigSettingsSource
  * Fix CLI suppression for model group help
  * Fix missing DEFAULT_PATH import
  * Fix case-insensitive handling of nested aliases in EnvironmentSettingsSource
  * Azure Key Vault case insensitive support and dash-underscore translation
  * fix: Respect 'cli_parse_args' from model_config with settings_customise_sources
  * Bump astral-sh/setup-uv
  * Update packages by
  * Update README.md
  * Fix CI badge
  * Update dependencies
  * Fix coverage report
  * Fix _consume_object_or_array on unbalanced brackets in JSON strings
  * add region as a parameter to aws secret manager
  * Expose GCP Secret Manager case sensitive option
  * Update deps
  * feat: Add cli_shortcuts to CLI settings
  * Expose AWS Secrets Manager case sensitive option
  * Prepare release 2.10.0
- remove otional test dependencies

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic-settings?expand=0&rev=18
2025-07-01 09:01:11 +00:00

34 lines
1.3 KiB
Diff

Index: pydantic_settings-2.8.1/pydantic_settings/sources.py
===================================================================
--- pydantic_settings-2.8.1.orig/pydantic_settings/sources.py
+++ pydantic_settings-2.8.1/pydantic_settings/sources.py
@@ -45,6 +45,7 @@ from pydantic.dataclasses import is_pyda
from pydantic.fields import FieldInfo
from pydantic_core import PydanticUndefined
from typing_extensions import Annotated, _AnnotatedAlias, get_args, get_origin
+from typing_inspection import typing_objects
from pydantic_settings.utils import path_type_label
@@ -1996,7 +1997,7 @@ class CliSettingsSource(EnvSettingsSourc
return '...'
elif isinstance(obj, Representation):
return repr(obj)
- elif isinstance(obj, typing_extensions.TypeAliasType):
+ elif typing_objects.is_typealiastype(obj):
return str(obj)
if not isinstance(obj, (typing_base, WithArgsTypes, type)):
Index: pydantic_settings-2.8.1/pyproject.toml
===================================================================
--- pydantic_settings-2.8.1.orig/pyproject.toml
+++ pydantic_settings-2.8.1/pyproject.toml
@@ -43,6 +43,7 @@ requires-python = '>=3.8'
dependencies = [
'pydantic>=2.7.0',
'python-dotenv>=0.21.0',
+ 'typing-inspection>=0.4.0',
]
dynamic = ['version']