Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
config.cpython-313.pyc66 linesDownload Raw Back to __pycache__
1�

2��j������%SrSSKJr SSKrSSKJr SSKJrJ	r	J3r4JrJrJ
r
JrJr SSKJrJrJrJr SSKJr SS	KJr SS5KJr SSKJr \(aSSKJr SS
KJ r J!r! Sr"\
\#\$\%\&S\'SS4r(S\)S'\*\%\(4r+S\)S'\6\	/\	4r,\
\7\+/S4\8\+\-\	/S44r.S\)S'\Sr/"SS\SS9r0\"S\-S9r1\\"S5SSj55r2\SSj5r2\S Sj5r2S!S"Sjjr2\"\35r4g)#z"Configuration for Pydantic models.�)�annotationsN)�Pattern)�
TYPE_CHECKING�Any�Callable�Literal�TypeVar�Union�cast�overload)�	TypeAlias�	TypedDict�Unpack�9deprecated�)�getattr_migration)�AliasGenerator)�PydanticUserError)�PydanticDeprecatedSince211)�GenerateSchema)�ComputedFieldInfo�	FieldInfo)�10ConfigDict�with_config�	JsonValue�JsonDictr
�JsonSchemaExtraCallable)�allow�ignore�forbidc�X�\rSrSr%SrS\S'S\S'S\S'S	\S11'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'S	\SI'SJrgK)Lr�$z/A TypedDict for configuring Pydantic behaviour.z12str | 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_lengthz13int | 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['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_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_alias�url_preserve_empty_path�polymorphic_serialization�N)�__name__�14__module__�__qualname__�__firstlineno__�__doc__�__annotations__�__static_attributes__rU��UD:\code\apps\devtools\python\user_packages\Python313\site-packages\pydantic/config.pyrr$sT��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�N4�3��E�D��,C�B��$5�4��5�4�15�>�=����T���Y�8�8�[�z��)�V��16�.�-�?�2�2��26�5�'�R L�K�7�r ��#�J5�4�$�L!� ��#�"�&�P9�8��*��"�H��$�L���B"�!��( $�#�r]rF)�total�_TypeT)�boundzePassing `config` as a keyword argument is deprecated. Pass `config` as a positional argument instead.c��g�NrU��configs r^rr�s��FIr]c��grcrUrds r^rr�s��FIr]c��grcrUrds r^rr�s��MPr]c�^�UbU(a[S5e[U5S:Xa?URS5=nb+[R"S[17SS9 [
[U5mOUbUO[
[U5mSU4SjjnU$)	a�!!! abstract "Usage Documentation"18    [Configuration with other types](../concepts/config.md#configuration-on-other-supported-types)19 20A convenience decorator to set a [Pydantic configuration](config.md) on a `TypedDict` or a `dataclass` from the standard library.21 22Although the configuration can be set using the `__pydantic_config__` attribute, it does not play well with type checkers,23especially with `TypedDict`.24 25!!! example "Usage"26 27    ```python28    from typing_extensions import TypedDict29 30    from pydantic import ConfigDict, TypeAdapter, with_config31 32    @with_config(ConfigDict(str_to_lower=True))33    class TD(TypedDict):34        x: str35 36    ta = TypeAdapter(TD)37 38    print(ta.validate_python({'x': 'ABC'}))39    #> {'x': 'abc'}40    ```41 42/// deprecated-removed | v2.11 v343Passing `config` as a keyword argument.44///45 46/// version-changed | v2.1147Keyword arguments can be provided directly instead of a config dictionary.48///49z2Cannot specify both `config` and keyword argumentsrrezdPassing `config` as a keyword argument is deprecated. Pass `config` as a positional argument instead�)�category�50stacklevelc�l>�SSKJn U"U5(a[SURS3SS9eTUlU$)Nr)�is_model_classzCannot use `with_config` on z as it is a Pydantic modelzwith-config-on-model)�code)�_internal._utilsrmrrV�__pydantic_config__)�class_rm�final_configs  �r^�inner�with_config.<locals>.inner�sD���	5��&�!�!�#�.�v���.?�?Y�Z�+��
�&2��"��
r])rqr`�returnr`)�51ValueError�len�get�warnings�warnrrr)re�kwargs�kwargs_confrsrrs    @r^rr�s{���D��f��M�N�N�52�6�{�a��F�J�J�x�,@�@�[�M��
�
�r�/��	53�54�J��4��!'�!3�v��j�&�9Q����Lr])rerru�Callable[[_TypeT], _TypeT])rezUnpack[ConfigDict]rur}rc)rezConfigDict | Noner{rrur})5rZ�55__future__r�_annotationsry�rer�typingrrrrr	r56rr�typing_extensionsr
rrr�57_migrationr�aliasesr�errorsrr�_internal._generate_schemar�_GenerateSchema�fieldsrr�__all__r*�float�strr&�listrr[�dictr�JsonEncoder�typer�ExtraValuesrr`rrV�__getattr__rUr]r^�<module>r�s;��(�2���X�X�X�F�F�)�#�%�0��M�4�58'���S�%��d�D�$�{�:K�Z�W�X�	�9�X��3�	�>�*��)�*���u�c�z�"��%*��h�Z��
���h��S�	�
"�D�
(�)�+�&����59�1�2��Y��%�Y�x$60���	&��61��s�t�I�u�62�I�63�I�64�I�65�P�66�P�=�@ ��)�r]
codekingpro/portable-devtools · Team Ai