frUdZddlmZddlmZmZmZmZm Z m Z m Z m Z ddl mZmZmZddlmZddlmZddlmZerdd lmZdd lmZmZd Ze eee e!d e d dfZ"de#d <ee e"fZ$de#d<eegefZ%e ee$gd fee$e egd ffZ&de#d<edZ'GddedZ(e de)Z*ddZ+ee,Z-y )z"Configuration for Pydantic models.) annotations) TYPE_CHECKINGAnyCallableDictListTypeTypeVarUnion)Literal TypeAlias TypedDict)getattr_migration)AliasGenerator)PydanticUserError)GenerateSchema)ComputedFieldInfo FieldInfo) ConfigDict with_configN JsonValueJsonDictr JsonSchemaExtraCallable)allowignoreforbidceZdZUdZded< ded< ded< ded < ded < ded < d ed < ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< d ed!< ded"< d#ed$< d%ed&< d'ed(< d'ed)< d*ed+< ded,< ded-< d.ed/< ded0< ded1< d2ed3< d4ed5< d6ed7< ded8< d9ed:< ded;< d< ded?< d@edA<yB)Crz/A TypedDict for configuring Pydantic behaviour.z str | NonetitlezCallable[[type], str] | Nonemodel_title_generatorz:Callable[[str, FieldInfo | ComputedFieldInfo], str] | Nonefield_title_generatorbool str_to_lower str_to_upperstr_strip_whitespaceintstr_min_lengthz int | Nonestr_max_lengthzExtraValues | Noneextrafrozenpopulate_by_nameuse_enum_valuesvalidate_assignmentarbitrary_types_allowedfrom_attributes loc_by_aliasz,Callable[[str], str] | AliasGenerator | Nonealias_generatorztuple[type, ...] ignored_types allow_inf_nanz)JsonDict | JsonSchemaExtraCallable | Nonejson_schema_extraz&dict[type[object], JsonEncoder] | None json_encodersstrictz0Literal['always', 'never', 'subclass-instances']revalidate_instanceszLiteral['iso8601', 'float']ser_json_timedeltaz Literal['utf8', 'base64', 'hex']ser_json_bytesval_json_bytesz'Literal['null', 'constants', 'strings']ser_json_inf_nanvalidate_defaultvalidate_returnztuple[str, ...]protected_namespaceshide_input_in_errors defer_buildz,tuple[Literal['model', 'type_adapter'], ...]experimental_defer_build_modezdict[str, object] | Noneplugin_settingsztype[_GenerateSchema] | Noneschema_generator+json_schema_serialization_defaults_requiredz,Literal['validation', 'serialization', None]json_schema_mode_overridecoerce_numbers_to_strz"Literal['rust-regex', 'python-re'] regex_enginevalidation_error_causeuse_attribute_docstringsz%bool | Literal['all', 'keys', 'none'] cache_stringsN)__name__ __module__ __qualname____doc____annotations__X/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/pydantic/config.pyrr!s9 O77_UUe\\I?? DL L@%N1f"!4lMAA8t$# v@@Y99 L4KJ||435454>=TY))IV)V"$PO .-32265$L LK4l #J54"H! #"#J98rQrF)total_TypeT)boundcdfd }|S)a$Usage docs: https://docs.pydantic.dev/2.9/concepts/config/#configuration-with-dataclass-from-the-standard-library-or-typeddict A convenience decorator to set a [Pydantic configuration](config.md) on a `TypedDict` or a `dataclass` from the standard library. Although the configuration can be set using the `__pydantic_config__` attribute, it does not play well with type checkers, especially with `TypedDict`. !!! example "Usage" ```py from typing_extensions import TypedDict from pydantic import ConfigDict, TypeAdapter, with_config @with_config(ConfigDict(str_to_lower=True)) class Model(TypedDict): x: str ta = TypeAdapter(Model) print(ta.validate_python({'x': 'ABC'})) #> {'x': 'abc'} ``` chddlm}||rtd|jdd|_|S)Nr)is_model_classzCannot use `with_config` on z as it is a Pydantic modelzwith-config-on-model)code)_internal._utilsrXrrK__pydantic_config__)class_rXconfigs rRinnerzwith_config..innersA 5 & !#.v.??YZ+ &," rQ)r\rTreturnrTrP)r]r^s` rRrrs4  LrQ)r]rr_zCallable[[_TypeT], _TypeT]).rN __future__r _annotationstypingrrrrrr r r typing_extensionsr r r _migrationraliasesrerrorsr_internal._generate_schemar_GenerateSchemafieldsrr__all__r&floatstrr"rrOr JsonEncoderr ExtraValuesrtyperTrrK __getattr__rPrQrRrqs(2QQQ;;)#%M4 'S%dD${:KZWX 9X3 >*)*ucz" %* hZ  hS "D ()+& 12 T%Tn  &(V ) rQ