PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/hc_python/lib/python3.12/site-packages/pydantic/__pycache__/
Upload File :
Current File : //opt/hc_python/lib/python3.12/site-packages/pydantic/__pycache__/config.cpython-312.pyc

�

���g(���r�UdZddlmZddlmZmZmZmZm	Z	m
Z
mZmZddl
mZmZmZddlmZddlmZddlmZerdd	lmZdd
lmZmZdZeeee e!de	d
dfZ"de#d
<ee e"fZ$de#d<eegefZ%eee$gdfee$e
egdffZ&de#d<edZ'Gd�ded��Z(ede)��Z*dd�Z+ee,�Z-y)z"Configuration for Pydantic models.�)�annotations)�
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��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*<	ded+<	ded,<	d-ed.<	ded/<	ded0<	d1ed2<	d3ed4<	d5ed6<	ded7<	d8ed9<	ded:<	d;ed<<	ded=<	ded><	d?ed@<yA)Brz/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_timedeltazLiteral['utf8', 'base64']�ser_json_bytesz'Literal['null', 'constants', 'strings']�ser_json_inf_nan�validate_default�validate_returnztuple[str, ...]�protected_namespaces�hide_input_in_errors�defer_buildz,tuple[Literal['model', 'type_adapter'], ...]�experimental_defer_build_modezdict[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_stringsN)�__name__�
__module__�__qualname__�__doc__�__annotations__���>/opt/hc_python/lib/python3.12/site-packages/pydantic/config.pyrr!s���9���O�7�7�_�U�U�e���\���\���I���?���?���D�L
�L�����@��%�N��1�f"�!�4�l�����M�A�A�8�t$�#����j�@�@�Y�9�9��
�L��4K�J�|�|4�3��.�-��>�=����T���Y�)�)�I�V��)�V���"$P�O��.�-��
3�2��26�5�$�L L�K�4�l ��#�J5�4�"�H!� ��#�"�#�J9�8�rPrF)�total�_TypeT)�boundc���d�fd�}|S)a$Usage docs: https://docs.pydantic.dev/2.8/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'}
        ```
    c�h��ddlm}||�rtd|j�d�d����|_|S)Nr)�is_model_classzCannot use `with_config` on z as it is a Pydantic modelzwith-config-on-model)�code)�_internal._utilsrWrrJ�__pydantic_config__)�class_rW�configs  �rQ�innerzwith_config.<locals>.innersA���	5��&�!�#�.�v���.?�?Y�Z�+��
�&,��"��
rP)r[rS�returnrSrO)r\r]s` rQrr�s���4��LrP)r\rr^zCallable[[_TypeT], _TypeT]).rM�
__future__r�_annotations�typingrrrrrr	r
r�typing_extensionsrr
r�
_migrationr�aliasesr�errorsr�_internal._generate_schemar�_GenerateSchema�fieldsrr�__all__r&�float�strr"rrNr�JsonEncoderr�ExtraValuesr�typerSrrJ�__getattr__rOrPrQ�<module>rps���(�2�Q�Q�Q�;�;�)�#�%��M�4�
'���S�%��d�D�$�{�:K�Z�W�X�	�9�X��3�	�>�*��)�*���u�c�z�"��%*��h�Z��
���h��S�	�
"�D�
(�)�+�&����
�1�2��K��%�K�\
���	&��(�V ��)�rP

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic