HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberPanel/lib64/python3.10/site-packages/pydantic/__pycache__/config.cpython-310.pyc
o

��h@��@s�UdZddlmZddlZddlmZddlmZm	Z	m
Z
mZmZm
Z
mZmZddlmZmZmZmZddlmZdd	lmZdd
lmZddlmZer[ddlmZdd
lm Z m!Z!dZ"e
e#e$e%e&de'ddfZ(de)d<e*e%e(fZ+de)d<e
e	ge	fZ,e
e
e+gdfe
e+e-e	gdffZ.de)d<edZ/Gdd�dedd�Z0ede-d�Z1eed�d'dd���Z2ed'd d��Z2ed(d"d��Z2d)d*d&d�Z2ee3�Z4dS)+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@s�eZdZUdZded<	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<	ded6<	d7ed8<	ded9<	d:ed;<	ded<<	ded=<	d>ed?<	ded@<	dedA<	dedB<dCS)Drz/A TypedDict for configuring Pydantic behaviour.z
str | None�titlezCallable[[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_lengthzExtraValues | 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_generatorztuple[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_instanceszLiteral['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_returnztuple[str | Pattern[str], ...]�protected_namespaces�hide_input_in_errors�defer_buildzdict[str, object] | None�plugin_settingsztype[_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_aliasN)�__name__�
__module__�__qualname__�__doc__�__annotations__�rSrS�E/usr/local/CyberPanel/lib/python3.10/site-packages/pydantic/config.pyr$s�
^	&&36:
x			]+
	&6%$
'#'rF)�total�_TypeT)�boundzePassing `config` as a keyword argument is deprecated. Pass `config` as a positional argument instead.�config�return�Callable[[_TypeT], _TypeT]cC�dS�NrS�rXrSrSrTrxsrcCr[r\rSr]rSrSrTr}��Unpack[ConfigDict]cKr[r\rSr]rSrSrTr�r^�ConfigDict | None�kwargsrcsv|dur
|r
td��t|�dkr'|�d�}dur'tjdtdd�tt|��n|dur-|ntt|��d
�fdd�}|S)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'}
        ```
    Nz2Cannot specify both `config` and keyword argumentsrrXzdPassing `config` as a keyword argument is deprecated. Pass `config` as a positional argument instead�)�category�
stacklevel�class_rVrYcs4ddlm}||�rtd|j�d�dd���|_|S)Nr)�is_model_classzCannot use `with_config` on z as it is a Pydantic modelzwith-config-on-model)�code)�_internal._utilsrfrrN�__pydantic_config__)rerf��final_configrSrT�inner�s�zwith_config.<locals>.inner)rerVrYrV)�
ValueError�len�get�warnings�warnrr
r)rXra�kwargs_confrlrSrjrTr�s�)rXrrYrZ)rXr_rYrZr\)rXr`rarrYrZ)5rQ�
__future__r�_annotationsrp�rer�typingrrrrrr	r
r�typing_extensionsrr
rr�
_migrationr�aliasesr�errorsrr�_internal._generate_schemar�_GenerateSchema�fieldsrr�__all__r'�float�strr#�listrrR�dictr�JsonEncoder�typer�ExtraValuesrrVrrN�__getattr__rSrSrSrT�<module>sT("��Y8