§
    ÐÁ³g‹  ã                  óÈ  — U d Z ddlmZ ddlmZ ddlmZmZm	Z	m
Z
mZmZmZmZ ddlmZmZmZ ddlmZ ddlmZ dd	lmZ erdd
lmZ ddlmZmZ dZee e!e"e#ded         df         Z$de%d<   e
e"e$f         Z&de%d<   e	egef         Z'ee	e&gdf         e	e&ee         gdf         f         Z(de%d<   ed         Z) G d„ ded¬¦  «        Z* ede+¬¦  «        Z,dd„Z- ee.¦  «        Z/dS )z"Configuration for Pydantic models.é    )Úannotations)ÚPattern)ÚTYPE_CHECKINGÚAnyÚCallableÚDictÚListÚTypeÚTypeVarÚUnion)ÚLiteralÚ	TypeAliasÚ	TypedDicté   )Úgetattr_migration)ÚAliasGenerator)ÚPydanticUserError)ÚGenerateSchema)ÚComputedFieldInfoÚ	FieldInfo)Ú
ConfigDictÚwith_configNÚ	JsonValueÚJsonDictr   ÚJsonSchemaExtraCallable)ÚallowÚignoreÚforbidc                  óþ  — e Zd ZU dZded<   	 ded<   	 ded<   	 ded	<   	 ded
<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 ded<   	 d ed!<   	 ded"<   	 d#ed$<   	 d%ed&<   	 d'ed(<   	 d'ed)<   	 d*ed+<   	 ded,<   	 ded-<   	 d.ed/<   	 ded0<   	 ded1<   	 d2ed3<   	 d4ed5<   	 ded6<   	 d7ed8<   	 ded9<   	 d:ed;<   	 ded<<   	 ded=<   	 d>ed?<   d@S )Ar   z/A TypedDict for configuring Pydantic behaviour.z
str | NoneÚtitlezCallable[[type], str] | NoneÚmodel_title_generatorz:Callable[[str, FieldInfo | ComputedFieldInfo], str] | NoneÚfield_title_generatorÚboolÚstr_to_lowerÚstr_to_upperÚstr_strip_whitespaceÚintÚstr_min_lengthz
int | NoneÚstr_max_lengthzExtraValues | NoneÚextraÚfrozenÚpopulate_by_nameÚuse_enum_valuesÚvalidate_assignmentÚarbitrary_types_allowedÚfrom_attributesÚloc_by_aliasz,Callable[[str], str] | AliasGenerator | NoneÚalias_generatorztuple[type, ...]Úignored_typesÚallow_inf_nanz)JsonDict | JsonSchemaExtraCallable | NoneÚjson_schema_extraz&dict[type[object], JsonEncoder] | NoneÚjson_encodersÚstrictz0Literal['always', 'never', 'subclass-instances']Úrevalidate_instanceszLiteral['iso8601', 'float']Úser_json_timedeltaz Literal['utf8', 'base64', 'hex']Úser_json_bytesÚval_json_bytesz'Literal['null', 'constants', 'strings']Úser_json_inf_nanÚvalidate_defaultÚvalidate_returnztuple[str | Pattern[str], ...]Úprotected_namespacesÚhide_input_in_errorsÚdefer_buildzdict[str, object] | NoneÚplugin_settingsztype[_GenerateSchema] | NoneÚschema_generatorÚ+json_schema_serialization_defaults_requiredz,Literal['validation', 'serialization', None]Újson_schema_mode_overrideÚcoerce_numbers_to_strz"Literal['rust-regex', 'python-re']Úregex_engineÚvalidation_error_causeÚuse_attribute_docstringsz%bool | Literal['all', 'keys', 'none']Úcache_stringsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__© ó    úM/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/pydantic/config.pyr   r   "   sö  € € € € € € Ø9Ð9àÐÐÑØOà7Ð7Ð7Ñ7Ø_àUÐUÐUÑUØeàÐÐÑØ\àÐÐÑØ\àÐÐÑØIàÐÐÑØ?àÐÐÑØ?àÐÐÑð>ð@ €L€L�Lðð ÐÐÑðð< ÐÐÑð$ðL ÐÐÑð1ðf "Ð!Ð!Ñ!ð4ðl ÐÐÑðð ÐÐÑð MàAÐAÐAÑAð8ðt $Ð#Ð#Ñ#ðð ÐÐÑØvà@Ð@Ð@Ñ@ØYà9Ð9Ð9Ñ9ðð €L€L�Lðð4 KÐJÐJÑJð|ð| 4Ð3Ð3Ñ3ðð 5Ð4Ð4Ñ4ðð 5Ð4Ð4Ñ4ðð >Ð=Ð=Ñ=ðð ÐÐÑØTàÐÐÑØYà8Ð8Ð8Ñ8ð[ðz ÐÐÑð)ðV ÐÐÑðð .Ð-Ð-Ñ-Ø?à2Ð2Ð2Ñ2ðð 6Ð5Ð5Ñ5ð$ðL LÐKÐKÑKð4ðl  ÐÐÑð#ðJ 5Ð4Ð4Ñ4ð"ðH !Ð Ð Ñ ðð #Ð"Ð"Ñ"ð#ðJ 9Ð8Ð8Ñ8ðð rQ   r   F)ÚtotalÚ_TypeT)ÚboundÚconfigÚreturnúCallable[[_TypeT], _TypeT]c                ó   ‡ — dˆ fd„}|S )a)  Usage docs: https://docs.pydantic.dev/2.10/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"

        ```python
        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'}
        ```
    Úclass_rT   rW   c               ól   •— ddl m}  || ¦  «        rt          d| j        › d�d¬¦  «        ‚‰| _        | S )Nr   )Úis_model_classzCannot use `with_config` on z as it is a Pydantic modelzwith-config-on-model)Úcode)Ú_internal._utilsr\   r   rK   Ú__pydantic_config__)rZ   r\   rV   s     €rR   Úinnerzwith_config.<locals>.inner  sb   ø€ ð 	5Ð4Ð4Ð4Ð4Ð4àˆ>˜&Ñ!Ô!ð 	Ý#ØZ¨v¬ÐZÐZÐZØ+ðñ ô ð ð &,ˆÔ"ØˆrQ   )rZ   rT   rW   rT   rP   )rV   r`   s   ` rR   r   r   î  s(   ø€ ð4ð ð ð ð ð ð €LrQ   )rV   r   rW   rX   )0rN   Ú
__future__r   Ú_annotationsÚrer   Útypingr   r   r   r   r	   r
   r   r   Útyping_extensionsr   r   r   Ú
_migrationr   Úaliasesr   Úerrorsr   Ú_internal._generate_schemar   Ú_GenerateSchemaÚfieldsr   r   Ú__all__r'   ÚfloatÚstrr#   r   rO   r   ÚJsonEncoderr   ÚExtraValuesr   ÚtyperT   r   rK   Ú__getattr__rP   rQ   rR   ú<module>rs      s!  ðØ (Ð (Ð (à 2Ð 2Ð 2Ð 2Ð 2Ð 2à Ð Ð Ð Ð Ð Ø QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ Qà ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;à )Ð )Ð )Ð )Ð )Ð )Ø #Ð #Ð #Ð #Ð #Ð #Ø %Ð %Ð %Ð %Ð %Ð %àð 5ØMÐMÐMÐMÐMÐMØ4Ð4Ð4Ð4Ð4Ð4Ð4Ð4à
'€ð ˜S %¨¨d°D¸$¸{Ô:KÈZÐWÔX€	Ð XÐ XÐ XÑ XØ˜3 	˜>Ô*€Ð *Ð *Ð *Ñ *à˜�u˜c�zÔ"€à%*ØˆhˆZ˜ÐÔØˆh˜˜Sœ	Ð" DÐ(Ô)ð+ô&Ð ð ð ð ñ ð
 Ð1Ô2€ðFð Fð Fð Fð F� %ð Fñ Fô Fð FðR 
ˆ� Ð	&Ñ	&Ô	&€ð(ð (ð (ð (ðV  Ð Ñ)Ô)€€€rQ   