+
    7*i  c                  sR  a  0 t $ R t^ RIHt ^ RIt^ RIHt ^ RIH	t	H
t
HtHtHtHtHtHt ^ RIHtHtHtHt ^RIHt ^RIHt ^RIHt ^R	IHt ]	'       d   ^R
IHt ^RI H!t!H"t" Rt#]]$]%]&]'R](R,          R3,          t)R]*R&   ]+]&])3,          t,R]*R&   ]]
.]
3,          t-]]],.R3,          ]],].]
,          .R3,          3,          t/R]*R&   ]R ,          t0 ! R R]RR7      t1]! R].R7      t2]]! R4      R R l4       4       t3]R R l4       t3]R R l4       t3R!R R llt3]! ]44      t5R# )"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	JsonValueJsonDictr
   JsonSchemaExtraCallablec                  sN   ] tR t^$t$ RtR]R&    R]R&    R]R&    R]R	&    R]R
&    R]R&    R]R&    R]R&    R]R&    R]R&    R]R&    R]R&    R]R&    R]R&    R]R&    R]R&    R]R&    R]R&    R]R&    R]R&    R ]R!&    R]R"&    R#]R$&    R%]R&&    R']R(&    R)]R*&    R+]R,&    R+]R-&    R.]R/&    R]R0&    R]R1&    R2]R3&    R]R4&    R]R5&    R6]R7&    R8]R9&    R]R:&    R;]R<&    R]R=&    R>]R?&    R]R@&    R]RA&    RB]RC&    R]RD&    R]RE&    R]RF&    R]RG&   RHtRI# )Jr   z/A TypedDict for configuring Pydantic behaviour.z
str | NoneZtitlezCallable[[type], str] | NoneZmodel_title_generatorz:Callable[[str, FieldInfo | ComputedFieldInfo], str] | NoneZfield_title_generatorboolZstr_to_lowerZstr_to_upperZstr_strip_whitespaceintZstr_min_lengthz
int | NoneZstr_max_lengthzExtraValues | NoneZextraZfrozenZpopulate_by_nameZuse_enum_valuesZvalidate_assignmentZarbitrary_types_allowedZfrom_attributesZloc_by_aliasz,Callable[[str], str] | AliasGenerator | NoneZalias_generatorztuple[type, ...]Zignored_typesZallow_inf_nanz)JsonDict | JsonSchemaExtraCallable | NoneZjson_schema_extraz&dict[type[object], JsonEncoder] | NoneZjson_encodersZstrictz0Literal['always', 'never', 'subclass-instances']Zrevalidate_instanceszLiteral['iso8601', 'float']Zser_json_timedeltaz-Literal['iso8601', 'seconds', 'milliseconds']Zser_json_temporalz+Literal['seconds', 'milliseconds', 'infer']Zval_temporal_unitz Literal['utf8', 'base64', 'hex']Zser_json_bytesZval_json_bytesz'Literal['null', 'constants', 'strings']Zser_json_inf_nanZvalidate_defaultZvalidate_returnztuple[str | Pattern[str], ...]Zprotected_namespacesZhide_input_in_errorsZdefer_buildzdict[str, object] | NoneZplugin_settingsztype[_GenerateSchema] | NoneZschema_generatorZ+json_schema_serialization_defaults_requiredz,Literal['validation', 'serialization', None]Zjson_schema_mode_overrideZcoerce_numbers_to_strz"Literal['rust-regex', 'python-re']Zregex_engineZvalidation_error_causeZuse_attribute_docstringsz%bool | Literal['all', 'keys', 'none']Zcache_stringsZvalidate_by_aliasZvalidate_by_nameZserialize_by_aliasZurl_preserve_empty_path N)__name__Z
__module__Z__qualname__Z__firstlineno____doc____annotations__Z__static_attributes__r       4/usr/lib/python3.14/site-packages/pydantic/config.pyr   r   $   sG   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: KJEN 43 ED, CB$ 54 54 >= TY88[z )V 
 .-?22 265'R  LK7r  #J 54$L !  #"&P 98* "H $L B "!r   F)Ztotal_TypeT)ZboundzePassing `config` as a keyword argument is deprecated. Pass `config` as a positional argument instead.c                    V ^8  d   QhRRRR/#    configr   returnCallable[[_TypeT], _TypeT]r   Zformat   "r    __annotate__r*     s     I I: I*D Ir   c                    R # Nr   r%   s   $r    with_configr.     s    FIr   c               r"   r#   r   r(   r)   r    r*   r*     s     I I
 I*D Ir   c               r+   r,   r   r-   r)   r    r.   r.     s    FIr   c               r"   )r$   r%   zUnpack[ConfigDict]r&   r'   r   r(   r)   r    r*   r*     s     P P, P1K Pr   c                 r+   r,   r   r-   s   ,r    r.   r.     s    MPr   c               s$    V ^8  d   QhRRRRRR/# )r$   r%   zConfigDict | Nonekwargsr   r&   r'   r   r(   r)   r    r*   r*     s#     = =) =s =Ga =r   c               s  a V e   V'       d   \        R4      h\        V4      ^8X  dD   VP                  R4      ;pe/   \        P                  ! R\
        ^R7       \        \        V4      oMV e   T M\        \        V4      oR V3R llpV# )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'}
    ```

/// deprecated-removed | v2.11 v3
Passing `config` as a keyword argument.
///

/// version-changed | v2.11
Keyword arguments can be provided directly instead of a config dictionary.
///
z2Cannot specify both `config` and keyword argumentsr%   zdPassing `config` as a keyword argument is deprecated. Pass `config` as a positional argument instead)ZcategoryZ
stacklevelc               s     V ^8  d   QhRRRR/# )r$   class_r!   r&   r   r(   r)   r    r*   Z!with_config.<locals>.__annotate__  s      f F r   c               st   < ^RI Hp V! V 4      '       d   \        RV P                   R2RR7      hSV n        V # )i   )is_model_classzCannot use `with_config` on z as it is a Pydantic modelzwith-config-on-model)Zcode)Z_internal._utilsr1   r   r   Z__pydantic_config__)r0   r1   final_configs   " r    innerZwith_config.<locals>.inner  sD     	5&!!#.v.??YZ+  &2"r   )Z
ValueErrorZlenZgetwarningsZwarnr   r   r   )r%   r/   Zkwargs_confr3   r2   s   ",  @r    r.   r.     s    D fMNN
6{aFJJx,@@[Mr/	

 J4!'!3vj&9Q  Lr   )r   r.   )ZallowZignoreZforbidr,   )6__conditional_annotations__r   Z
__future__r    Z_annotationsr4   Zrer   Ztypingr   r   r   r   r   r   r   r	   Ztyping_extensionsr
   r   r   r   Z
_migrationr   Zaliasesr   Zerrorsr   r   Z_internal._generate_schemar   Z_GenerateSchemaZfieldsr   r   Z__all__r   ZfloatZstrr   Zlistr   r   Zdictr   ZJsonEncoderZtyper   ZExtraValuesr   r!   r.   r   Z__getattr__)r5   s   @r    <module>r6      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Q% Qh$ 
	& 
st I u 
 I 
 I 
 I 
 P 
 P=@  )r   