
    i}                       % S r SSKJr  SSKrSSKJr  SSKJrJ	r	J
r
JrJrJrJrJr  SSKJrJrJrJr  SSKJr  SS	KJr  SS
KJr  SSKJr  \(       a  SSKJr  SSKJ r J!r!  Sr"\\#\$\%\&S\'S   S4   r(S\)S'   \*\%\(4   r+S\)S'   \
\	/\	4   r,\\
\+/S4   \
\+\-\	   /S4   4   r.S\)S'   \S   r/ " S S\SS9r0\" S\-S9r1\\" S5      SS j5       5       r2\SS j5       r2\S S j5       r2S!S"S jjr2\" \35      r4g)#z"Configuration for Pydantic models.    )annotationsN)Pattern)TYPE_CHECKINGAnyCallableLiteralTypeVarUnioncastoverload)	TypeAlias	TypedDictUnpack
deprecated   )getattr_migration)AliasGenerator)PydanticUserError)PydanticDeprecatedSince211)GenerateSchema)ComputedFieldInfo	FieldInfo)
ConfigDictwith_config	JsonValueJsonDictr   JsonSchemaExtraCallable)allowignoreforbidc                  L   \ rS rSr% SrS\S'    S\S'    S\S'    S	\S
'    S	\S'    S	\S'    S\S'    S\S'    S\S'    S	\S'    S	\S'    S	\S'    S	\S'    S	\S'    S	\S'    S	\S'    S\S'    S\S'    S	\S'    S\S '    S!\S"'    S	\S#'    S$\S%'    S&\S''    S(\S)'    S*\S+'    S,\S-'    S,\S.'    S/\S0'    S	\S1'    S	\S2'    S3\S4'    S	\S5'    S	\S6'    S7\S8'    S9\S:'    S	\S;'    S<\S='    S	\S>'    S?\S@'    S	\SA'    S	\SB'    SC\SD'    S	\SE'    S	\SF'    S	\SG'    S	\SH'   SIrgJ)Kr   $   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['iso8601', 'seconds', 'milliseconds']ser_json_temporalz+Literal['seconds', 'milliseconds', 'infer']val_temporal_unitz 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_stringsvalidate_by_aliasvalidate_by_nameserialize_by_aliasurl_preserve_empty_path N)__name__
__module____qualname____firstlineno____doc____annotations____static_attributes__rT       W/var/www/html/qgis-automation/mouza_env/lib/python3.13/site-packages/pydantic/config.pyr   r   $   sF   9O77_UUe\\I??qf L $L $L 1f "!4l   MAA8t $# v@@Y99 L4 KJvp 43
 ED, CB 54 54 >= TY88[z )V  .-?22 265$L  LK4l  #J 54!F !  #"%N 98$ !F %N 2 "!r\   r   F)total_TypeT)boundzePassing `config` as a keyword argument is deprecated. Pass `config` as a positional argument instead.c                    g NrT   configs    r]   r   r     s    FIr\   c                   g rb   rT   rc   s    r]   r   r     s    FIr\   c                     g rb   rT   rc   s    r]   r   r     s    MPr\   c                 ^ U b  U(       a  [        S5      e[        U5      S:X  a?  UR                  S5      =nb+  [        R                  " S[
        SS9  [        [        U5      mOU b  U O[        [        U5      mSU4S jjnU$ )	a  !!! abstract "Usage Documentation"
    [Configuration with other types](../concepts/config.md#configuration-on-other-supported-types)

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 TD(TypedDict):
        x: str

    ta = TypeAdapter(TD)

    print(ta.validate_python({'x': 'ABC'}))
    #> {'x': 'abc'}
    ```
z2Cannot specify both `config` and keyword argumentsr   rd   zdPassing `config` as a keyword argument is deprecated. Pass `config` as a positional argument instead   )category
stacklevelc               l   > SSK Jn  U" U 5      (       a  [        SU R                   S3SS9eTU l        U $ )Nr   )is_model_classzCannot use `with_config` on z as it is a Pydantic modelzwith-config-on-model)code)_internal._utilsrl   r   rU   __pydantic_config__)class_rl   final_configs     r]   innerwith_config.<locals>.inner  sD     	5&!!#.v.??YZ+  &2"r\   )rp   r_   returnr_   )
ValueErrorlengetwarningswarnr   r   r   )rd   kwargskwargs_confrr   rq   s       @r]   r   r     sz    4 fMNN
6{aFJJx,@@[Mr/	

 J4!'!3vj&9Q Lr\   )rd   r   rt   Callable[[_TypeT], _TypeT])rd   zUnpack[ConfigDict]rt   r|   rb   )rd   zConfigDict | Nonerz   r   rt   r|   )5rY   
__future__r   _annotationsrx   rer   typingr   r   r   r   r	   r
   r   r   typing_extensionsr   r   r   r   
_migrationr   aliasesr   errorsr   r   _internal._generate_schemar   _GenerateSchemafieldsr   r   __all__r*   floatstrr&   listr   rZ   dictr   JsonEncodertyper   ExtraValuesr   r_   r   rU   __getattr__rT   r\   r]   <module>r      s;   ( 2   X X X F F ) # % 0M4
' S%dD${:KZWX	9 X3	>*) *ucz"%*hZhS	"D()+&  
 12_% _D% 
	& 
st I u 
 I 
 I 
 I 
 P 
 P5p  )r\   