Team Ai
Datasetpublic

codekingpro/portable-devtools

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

2��jVM�	���%SrSSKJr SSKrSSKrSSKrSSKrSSKJ	r	J3r4 SSKJrJr SSK
Jr SSKJrJrJrJrJrJrJrJrJrJrJr SSKrSSKrSSKJrJr SS	KJrJ r J!r! S5SK"J#r#J$r$ S6SK%J&r&J'r'J(r(J)r)J*r*J+r+J,r,J-r-J.r.J/r/J0r0 S7S
K1J2r2 S8SK3J4r4J5r5 S9SK6J7r7J8r8 S10SK9J:r:J;r; S11SK<J=r=J>r> S12SK?J@r@JArAJBrBJCrCJDrD S13SKEJFrF \(a:SSKGJHrH SSKIJJrJ SSKJKrKJLrLJMrM S14SKNJOrO S15SKPJQrQ S16SKRJSrSJTrT S17SKUJVrW S18SKXJYrYJZrZJ[r[ Sr\\	\]\^\4SS4r_S\`S'\\a\b\a\^\19\b\S\c44\20\^\S\c444rdS\`S'\,R�rfS3S jrgS4S"jrhS4S#jri\hS$\iS%S&S'.rjS(\`S)'"S*S!\,R�S+9rl\"S,\lS-9rm\SSS\nSSSS..S5S/jj5ro\SS\nSSSS0.S6S1jj5roSSSSSSSS..S7S2jjro\2"\n5rpg)8zLogic for creating models.�)�annotationsN)�	Generator�Mapping)�copy�deepcopy)�cached_property)�
TYPE_CHECKING�Any�Callable�ClassVar�Dict�Generic�Literal�TypeVar�Union�cast�overload)�PydanticUndefined�ValidationError)�Self�	TypeAlias�Unpack�)�PydanticDeprecatedSince20�PydanticDeprecatedSince211)�_config�_decorators�_fields�_forward_ref�	_generics�
_mock_val_ser�_model_construction�_namespace_utils�_repr�
_typing_extra�_utils)�getattr_migration)�AliasChoices�	AliasPath)�GetCoreSchemaHandler�GetJsonSchemaHandler)�21ConfigDict�ExtraValues)�PydanticUndefinedAnnotation�PydanticUserError)�DEFAULT_REF_TEMPLATE�GenerateJsonSchema�JsonSchemaMode�JsonSchemaValue�model_json_schema)�PluggableSchemaValidator)�	Signature)�Path)�22CoreSchema�SchemaSerializer�SchemaValidator)�PydanticExtraInfo)�MappingNamespace)�AbstractSetIntStr�MappingIntStrAny)�Protocol)�ComputedFieldInfo�	FieldInfo�ModelPrivateAttr)�	BaseModel�create_modelr�TupleGenerator�IncExc���URRS5(aSnO/[URRU5SS5(aSnOg[R23"URX14US./5e)N�frozen�frozen_instanceF�frozen_field��type�loc�input)�model_config�get�getattr�__pydantic_fields__r�from_exception_data�__name__)�	model_cls�name�value�24error_types    �SD:\code\apps\devtools\python\user_packages\Python313\site-packages\pydantic/main.py�
_check_frozenrZRsn�����!�!�(�+�+�&�25�	��.�.�2�2�4�8�(�E�	J�	J�#�26��27�28-�29-����j��5�Q�R���rCc�V�X RU'URRU5 g�N)�__dict__�__pydantic_fields_set__�add��modelrV�vals   rY�_model_field_setattr_handlerrd_s"���N�N�4��	�!�!�%�%�d�+r[c�j�[USS5c[RUS05 X RU'g)N�__pydantic_private__)rQ�object�__setattr__rfras   rY�_private_setattr_handlerrids5���u�,�d�3�;�30	���5�"8�"�=�'*���t�$r[c�:�URRXU5$r])�__pydantic_validator__�validate_assignmentras   rY�<lambda>rmps��E�4P�4P�4d�4d�ej�ru�4vr[c�8�URRX5$r])r^�__setitem__ras   rYrmrmrs�����0J�0J�4�0Ur[c��[XU5$r])�_object_setattrras   rYrmrmss��O�E��,Mr[)�model_fieldrl�privater�extra_knownz3Mapping[str, Callable[[BaseModel, str, Any], None]]�_SIMPLE_SETATTR_HANDLERSc�6^�\rSrSr%Sr\"5rS\S'S\S'S\S'S	\S31'SrS\S
'S\S'S\S'\	R"5rS\S'S\S'SrS\S'S\S'Sr
S\S'S\S'S\S'S\S 'S!\S"'S#\S$'S%\S&'\R"SS'9rS(\S)'\R"SS'9rS*\S+'\R"SS'9rS(\S,'\(d5\R*"S-S.S/9r\R."S-S0S.S19r\R."S-S2S.S19rS3rS�S4jrS5\l\R<\S�S6j55r \R<\S�S7j55r!\"S�S8j5r#\"S�S9j5r$\S�S�S:jj5r%SSS;.S�S<jjr&S=SSSSSSSSSS5SSSS>.S�S?jjr'SSSSSSSSSSSS5SSSS@.S�SAjjr(\S5\)\*SB4SCSD.S�SEjjj5r+\S�SFj5r,S�SGjr-\SS5SHSSI.S�SJjj5r.\SSSSSSSK.S�SLjj5r/\SSSSSSM.S�SNjj5r0\SSSSSSM.S�SOjj5r1\S�SPj5r2\S�SQj5r3\S�SRj5r4\S�SSj5r5S�STjr6S�SUjr7S�S�SVjjr8\(dS�U4SWjjr9S�SXjr:S�SYjr;S�SZjr<S�S[jr=S�S\jr>S�S]jr?\(dS�S^jr@\(aS�S_jrAS�S`jrBS�SajrCS�SbjrD\ER�R�rG\ER�R�rH\ER�R�rI\ER�R�rJ\ER�R�rKS�ScjrL\"\MR�"SdSSe9S�Sfj55rO\"\MR�"SgSSe9S�Shj55rP\MR�"SiSSe9SSSSSSSj.S�Skjj5rQ\MR�"SlSSe9SSSSSS\R\RSm.S�Snjj5rS\\MR�"SoSSe9S�Spj55rT\\MR�"SqSSe9SSrSSSs.S�Stjj55rU\\MR�"SuSSe9SSrSSSs.S�Svjj55rV\\MR�"SwSSe9S�Sxj55rW\\MR�"SySSe9S�S�Szjj55rX\MR�"S{SSe9SSSSS|.S�S}jj5rY\\MR�"S~SSe9S5\)4S�Sjj55rZ\\MR�"S�SSe9S5\)S�.S�S�jj55r[\\MR�"S�SSe9S�S�j55r\\\MR�"S�SSe9S�S�j55r]\MR�"S�SSe9S�S�j5r^\MR�"S�SSe9S�S�j5r_\\MR�"S�SSe9S�S�j55r`\MR�"S�SSe9S�S�j5raS�rbU=rc$)�rC�wa�!!! abstract "Usage Documentation"32    [Models](../concepts/models.md)33 34A base class for creating Pydantic models.35 36Attributes:37    __class_vars__: The names of the class variables defined on the model.38    __private_attributes__: Metadata about the private attributes of the model.39    __signature__: The synthesized `__init__` [`Signature`][inspect.Signature] of the model.40 41    __pydantic_complete__: Whether model building is completed, or if there are still undefined fields.42    __pydantic_core_schema__: The core schema of the model.43    __pydantic_custom_init__: Whether the model has a custom `__init__` function.44    __pydantic_decorators__: Metadata containing the decorators defined on the model.45        This replaces `Model.__validators__` and `Model.__root_validators__` from Pydantic V1.46    __pydantic_generic_metadata__: A dictionary containing metadata about generic Pydantic models.47        The `origin` and `args` items map to the [`__origin__`][genericalias.__origin__]48        and [`__args__`][genericalias.__args__] attributes of [generic aliases][types-genericalias],49        and the `parameter` item maps to the `__parameter__` attribute of generic classes.50    __pydantic_parent_namespace__: Parent namespace of the model, used for automatic rebuilding of models.51    __pydantic_post_init__: The name of the post-init method for the model, if defined.52    __pydantic_root_model__: Whether the model is a [`RootModel`][pydantic.root_model.RootModel].53    __pydantic_serializer__: The `pydantic-core` `SchemaSerializer` used to dump instances of the model.54    __pydantic_validator__: The `pydantic-core` `SchemaValidator` used to validate instances of the model.55 56    __pydantic_fields__: A dictionary of field names and their corresponding [`FieldInfo`][pydantic.fields.FieldInfo] objects.57    __pydantic_computed_fields__: A dictionary of computed field names and their corresponding [`ComputedFieldInfo`][pydantic.fields.ComputedFieldInfo] objects.58 59    __pydantic_extra__: A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra]60        is set to `'allow'`.61    __pydantic_fields_set__: The names of fields explicitly set during instantiation.62    __pydantic_private__: Values of private attributes set on the model instance.63zClassVar[ConfigDict]rOzClassVar[set[str]]�__class_vars__z%ClassVar[Dict[str, ModelPrivateAttr]]�__private_attributes__zClassVar[Signature]�
__signature__FzClassVar[bool]�__pydantic_complete__zClassVar[CoreSchema]�__pydantic_core_schema__�__pydantic_custom_init__z$ClassVar[_decorators.DecoratorInfos]�__pydantic_decorators__z+ClassVar[_generics.PydanticGenericMetadata]�__pydantic_generic_metadata__NzClassVar[Dict[str, Any] | None]�__pydantic_parent_namespace__z+ClassVar[None | Literal['model_post_init']]�__pydantic_post_init__�__pydantic_root_model__zClassVar[SchemaSerializer]�__pydantic_serializer__z4ClassVar[SchemaValidator | PluggableSchemaValidator]rkzClassVar[Dict[str, FieldInfo]]rRz:ClassVar[Dict[str, Callable[[BaseModel, str, Any], None]]]�__pydantic_setattr_handlers__z&ClassVar[Dict[str, ComputedFieldInfo]]�__pydantic_computed_fields__z"ClassVar[PydanticExtraInfo | None]�__pydantic_extra_info__)�init�Dict[str, Any] | None�__pydantic_extra__�set[str]r_rfzXPydantic models should inherit from BaseModel, BaseModel cannot be instantiated directlyzbase-model-instantiated��code�	validator)�64val_or_serr��65serializer)r^r_r�rfc�n�SnURRXS9nXLa[R"SSS9 gg)aCreate a new model by parsing and validating input data from keyword arguments.66 67Raises [`ValidationError`][pydantic_core.ValidationError] if the input data cannot be68validated to form a valid model.69 70`self` is explicitly positional-only to allow `self` as a field name.71T)�
self_instancea*A custom validator is returning a value other than `self`.72Returning anything other than `self` from a top level model validator isn't supported when validating via `__init__`.73See the `model_validator` docs (https://docs.pydantic.dev/latest/concepts/validators/#model-validators) for more details.���74stacklevelN)rk�validate_python�warnings�warn)�self�data�__tracebackhide__�validated_selfs    rY�__init__�BaseModel.__init__�sE��!���4�4�D�D�T�D�^���%��M�M�L��	
�&r[Tc��[US05$)aA mapping of field names to their respective [`FieldInfo`][pydantic.fields.FieldInfo] instances.75 76!!! warning77    Accessing this attribute from a model instance is deprecated, and will not work in Pydantic V3.78    Instead, you should access this attribute from the model class.79rR�rQ��clss rY�model_fields�BaseModel.model_fieldss���s�1�2�6�6r[c��[US05$)a/A mapping of computed field names to their respective [`ComputedFieldInfo`][pydantic.fields.ComputedFieldInfo] instances.80 81!!! warning82    Accessing this attribute from a model instance is deprecated, and will not work in Pydantic V3.83    Instead, you should access this attribute from the model class.84r�r�r�s rY�model_computed_fields�BaseModel.model_computed_fieldss���s�:�B�?�?r[c��UR$)z�Get extra fields set during validation.85 86Returns:87    A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.88)r��r�s rY�model_extra�BaseModel.model_extra)s���&�&�&r[c��UR$)z�Returns the set of fields that have been explicitly set on this model instance.89 90Returns:91    A set of strings representing the fields that have been set,92        i.e. that were not filled from defaults.93)r_r�s rY�model_fields_set�BaseModel.model_fields_set2s���+�+�+r[c�p�URU5n0n[5nURR5GH�upgURb>URU;a.URUR5XF'UR
U5 Xe;a�URb�[UR[5(aURROUR/nUH�n	[U	[5(a+X�;a&URU	5XF'UR
U5  OL[U	[5(dMZU	RU5n94U95[LdMvX�U'UR
U5  O Xe;dGM>Xb;a'URU5XF'UR
U5 GMjUR5(aGM�UR!SUS9XF'GM� UcUnUR"R%S5S:XaUOSn['USU5 ['USU5 UR((d['USU5 ['US	S5 UR*(agUR-S5 [/US	5(aEUR0b8UR5H$up�X�R2;dMX�R0U'M& U$)96a�Creates a new instance of the `Model` class with validated data.97 98Creates a new model setting `__dict__` and `__pydantic_fields_set__` from trusted or pre-validated data.99Default values are respected, but no other validation is performed.100 101!!! note102    `model_construct()` generally respects the `model_config.extra` setting on the provided model.103    That is, if `model_config.extra == 'allow'`, then all extra passed values are added to the model instance's `__dict__`104    and `__pydantic_extra__` fields. If `model_config.extra == 'ignore'` (the default), then all extra passed values are ignored.105    Because no validation is performed with a call to `model_construct()`, having `model_config.extra == 'forbid'` does not result in106    an error if extra values are passed, but they will be ignored.107 108Args:109    _fields_set: A set of field names that were originally explicitly set during instantiation. If provided,110        this is directly used for the [`model_fields_set`][pydantic.BaseModel.model_fields_set] attribute.111        Otherwise, the field names from the `values` argument will be used.112    values: Trusted or pre-validated data dictionary.113 114Returns:115    A new instance of the `Model` class with validated data.116NT)�call_default_factory�validated_data�extra�allowr^r_r�rf)�__new__�setrR�items�alias�popr`�validation_alias�117isinstancer(�choices�strr)�search_dict_for_pathr�is_required�get_defaultrOrPrqr�r��model_post_init�hasattrrfry)r��_fields_set�values�m�
fields_values�118fields_setrV�field�validation_aliasesr�rW�_extra�k�vs              rY�model_construct�BaseModel.model_construct<sQ��.
�K�K����(*�
��U�119��2�2�8�8�:�K�D��{�{�&�5�;�;�&�+@�&,�j�j����&=�
�#����t�$��&�U�-C�-C�-O�"�%�"8�"8�,�G�G��*�*�2�2��0�0�1�#�0�E�!�%��-�-�%�/�.4�j�j��.?�
�+�"���t�,��#�E�9�5�5� %� :� :�6� B�� �(9�9�27�$�/�&�N�N�4�0�!�0��%��>�*0�*�*�T�*:�M�'��N�N�4�(��*�*�,�,�*/�*;�*;�QU�fs�*;�*t�M�'�;;�<��$�K�25�2B�2B�2F�2F�w�2O�SZ�2Z��`d����:�}�5���4�k�B��*�*��A�3�V�<��A�5�t�<��%�%�
���d�#��q�0�1�1�a�6L�6L�6X�"�L�L�N�D�A��4�4�4�45�.�.�q�1�+��r[)�update�deepc���U(aUR5OUR5nU(a�URRS5S:Xa[UR	5HFupEX@R120;aXSRU'M$URc0UlXSRU'MH OURRU5 URRUR55 U$)av!!! abstract "Usage Documentation"121    [`model_copy`](../concepts/models.md#model-copy)122 123Returns a copy of the model.124 125!!! note126    The underlying instance's [`__dict__`][object.__dict__] attribute is copied. This127    might have unexpected side effects if you store anything in it, on top of the model128    fields (e.g. the value of [cached properties][functools.cached_property]).129 130Args:131    update: Values to change/add in the new model. Note: the data is not validated132        before creating the new model. You should trust this data.133    deep: Set to `True` to make a deep copy of the model.134 135Returns:136    New model instance.137r�r�)�__deepcopy__�__copy__rOrPr�rRr^r�r�r_�keys)r�r�r��copiedr�r�s      rY�138model_copy�BaseModel.model_copy�s���&)-��"�"�$�$�-�-�/���� � �$�$�W�-��8�"�L�L�N�D�A��4�4�4�-.����*�!�4�4�<�8:�F�5�78�1�1�!�4�
+����&�&�v�.��*�*�1�1�&�+�+�-�@��
r[�python)�mode�include�exclude�context�by_alias�
exclude_unset�exclude_defaults�exclude_none�exclude_computed_fields�139round_tripr��fallback�serialize_as_any�polymorphic_serializationc�P�URRUUUUUUUUUU	U140UUU
US9$)aX!!! abstract "Usage Documentation"141    [`model_dump`](../concepts/serialization.md#python-mode)142 143Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.144 145Args:146    mode: The mode in which `to_python` should run.147        If mode is 'json', the output will only contain JSON serializable types.148        If mode is 'python', the output may contain non-JSON-serializable Python objects.149    include: A set of fields to include in the output.150    exclude: A set of fields to exclude from the output.151    context: Additional context to pass to the serializer.152    by_alias: Whether to use the field's alias in the dictionary key if defined.153    exclude_unset: Whether to exclude fields that have not been explicitly set.154    exclude_defaults: Whether to exclude fields that are set to their default value.155    exclude_none: Whether to exclude fields that have a value of `None`.156    exclude_computed_fields: Whether to exclude computed fields.157        While this can be useful for round-tripping, it is usually recommended to use the dedicated158        `round_trip` parameter instead.159    round_trip: If True, dumped values should be valid as input for non-idempotent types such as Json[T].160    warnings: How to handle serialization errors. False/"none" ignores them, True/"warn" logs errors,161        "error" raises a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError].162    fallback: A function to call when an unknown value is encountered. If not provided,163        a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.164    serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.165    polymorphic_serialization: Whether to use model and dataclass polymorphic serialization for this call.166 167Returns:168    A dictionary representation of the model.169)r�r�r�r�r�r�r�r�r�r�r�r�r�r�)r��	to_python)r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�s               rY�170model_dump�BaseModel.model_dump�sP��`�+�+�5�5�������'�-�%�$;�!���-�&?�6�171�	172r[��indent�ensure_asciir�r�r�r�r�r�r�r�r�r�r�r�r�c�n�URRUUUUUUUUUU	U173UUU
UUS9R5$)aW!!! abstract "Usage Documentation"174    [`model_dump_json`](../concepts/serialization.md#json-mode)175 176Generates a JSON representation of the model using Pydantic's `to_json` method.177 178Args:179    indent: Indentation to use in the JSON output. If None is passed, the output will be compact.180    ensure_ascii: If `True`, the output is guaranteed to have all incoming non-ASCII characters escaped.181        If `False` (the default), these characters will be output as-is.182    include: Field(s) to include in the JSON output.183    exclude: Field(s) to exclude from the JSON output.184    context: Additional context to pass to the serializer.185    by_alias: Whether to serialize using field aliases.186    exclude_unset: Whether to exclude fields that have not been explicitly set.187    exclude_defaults: Whether to exclude fields that are set to their default value.188    exclude_none: Whether to exclude fields that have a value of `None`.189    exclude_computed_fields: Whether to exclude computed fields.190        While this can be useful for round-tripping, it is usually recommended to use the dedicated191        `round_trip` parameter instead.192    round_trip: If True, dumped values should be valid as input for non-idempotent types such as Json[T].193    warnings: How to handle serialization errors. False/"none" ignores them, True/"warn" logs errors,194        "error" raises a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError].195    fallback: A function to call when an unknown value is encountered. If not provided,196        a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.197    serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.198    polymorphic_serialization: Whether to use model and dataclass polymorphic serialization for this call.199 200Returns:201    A JSON string representation of the model.202r�)r��to_json�decode)r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�s                rY�model_dump_json�BaseModel.model_dump_json�s\��b�+�+�3�3���%�����'�-�%�$;�!���-�&?�!4�203�"�&�(�#	r[�204validation�any_of)�union_formatc	��[UUUUUUS9$)aGenerates a JSON schema for a model class.205 206Args:207    by_alias: Whether to use attribute aliases or not.208    ref_template: The reference template.209    union_format: The format to use when combining schemas from unions together. Can be one of:210 211        - `'any_of'`: Use the [`anyOf`](https://json-schema.org/understanding-json-schema/reference/combining#anyOf)212        keyword to combine schemas (the default).213        - `'primitive_type_array'`: Use the [`type`](https://json-schema.org/understanding-json-schema/reference/type)214        keyword as an array of strings, containing each type of the combination. If any of the schemas is not a primitive215        type (`string`, `boolean`, `null`, `integer` or `number`) or contains constraints/metadata, falls back to216        `any_of`.217    schema_generator: To override the logic used to generate the JSON schema, as a subclass of218        `GenerateJsonSchema` with your desired modifications219    mode: The mode in which to generate the schema.220 221Returns:222    The JSON schema for the given model class.223)r��ref_templater��schema_generatorr�)r4)r�r�r�r�r�r�s      rYr4�BaseModel.model_json_schema1s#��<!���%�%�-��
224�	225r[c��[U[5(d[S5eUVs/sH0n[U[5(aUO[226R"U5PM2 nnSRU5nURSUS3$s snf)a-Compute the class name for parametrizations of generic classes.227 228This method can be overridden to achieve a custom naming scheme for generic BaseModels.229 230Args:231    params: Tuple of types of the class. Given a generic class232        `Model` with 2 type variables and a concrete model `Model[str, int]`,233        the value `(str, int)` would be passed to `params`.234 235Returns:236    String representing the new class where `params` are passed to `cls` as type variables.237 238Raises:239    TypeError: Raised when trying to generate concrete names for non-generic models.240z;Concrete names should only be generated for generic models.�, �[�])	�241issubclassr�	TypeErrorr�r�r$�display_as_type�joinrT)r��params�param�param_names�params_components     rY�model_parametrized_name�!BaseModel.model_parametrized_nameXs���"�#�w�'�'��Y�Z�Z�242gm�m�fl�]b�243�5�#� 6� 6�u�E�<Q�<Q�RW�<X�X�fl��m��9�9�[�1���,�,��q�!1� 2�!�4�4��ns�7Bc��g)z�Override this method to perform additional initialization after `__init__` and `model_construct`.244This is useful if you want to do some validation that requires the entire model to be initialized.245N�)r�r�s  rYr��BaseModel.model_post_inits��r[r�)�force�raise_errors�_parent_namespace_depth�_types_namespacec	�6�URnU(aU(dgSUlSHInX`R;dM[[X5[R2465(aM>[
X5 MK UbUnO'US:�a[R"USS9=(d 0nO0n[R"UR5=(d 0n[R"0UEUES9n	[R"U[R "UR"SS9U	UU(+US	9$)247a�Try to rebuild the pydantic-core schema for the model.248 249This may be necessary when one of the annotations is a ForwardRef which could not be resolved during250the initial attempt to build the schema, and automatic rebuilding fails.251 252Args:253    force: Whether to force the rebuilding of the model schema, defaults to `False`.254    raise_errors: Whether to raise errors, defaults to `True`.255    _parent_namespace_depth: The depth level of the parent namespace, defaults to 2.256    _types_namespace: The types namespace, defaults to `None`.257 258Returns:259    Returns `None` if the schema is already "complete" and rebuilding was not required.260    If rebuilding _was_ required, returns `True` if rebuilding was successful, otherwise `False`.261NF)r|rkr�rT)�parent_depthr	)�parent_namespace)�check)r262�call_on_complete_hook�is_force_rebuild)r{r^r�rQr!�263MockValSer�delattrr%�parent_frame_namespacer"�unpack_lenient_weakvaluedictr�r#�264NsResolver�complete_model_classr�
ConfigWrapperrO)265r�r	r266rr�already_complete�attr�267rebuild_ns�	parent_ns�ns_resolvers268          rY�
model_rebuild�BaseModel.model_rebuildxs��0�4�4���E��$)��!�e�D��|�|�#�J�w�s�7I�=�Kc�Kc�,d�,d�269��"�
f��'�)�J�
$�q�
(�&�=�=�Kb�jn�o�u�su�J��J�'�D�D�S�Ef�Ef�g�m�km�	�&�1�1�8�270�8�i�8�271��#�7�7���!�!�#�"2�"2�%�@��%�&6�"6�"�272�	273r[��strictr��from_attributesr�r��by_namec274�l�SnUSLaUSLa275[SSS9eURRUUUUUUUS9$)a�Validate a pydantic model instance.276 277Args:278    obj: The object to validate.279    strict: Whether to enforce types strictly.280    extra: Whether to ignore, allow, or forbid extra data during model validation.281        See the [`extra` configuration value][pydantic.ConfigDict.extra] for details.282    from_attributes: Whether to extract data from object attributes.283    context: Additional context to pass to the validator.284    by_alias: Whether to use the field's alias when validating against the provided input data.285    by_name: Whether to use the field's name when validating against the provided input data.286 287Raises:288    ValidationError: If the object could not be validated.289 290Returns:291    The validated model instance.292TF�<At least one of `by_alias` or `by_name` must be set to True.� validate-by-alias-and-name-falser�r!)r/rkr�)	r��objr"r�r#r�r�r$r�s	         rY�model_validate�BaseModel.model_validate�sa��>!���u����!4�#�N�7��
�293�)�)�9�9����+����:�294�	295r[�r"r�r�r�r$c	�d�SnUSLaUSLa296[SSS9eURRXX4XVS9$)a$!!! abstract "Usage Documentation"297    [JSON Parsing](../concepts/json.md#json-parsing)298 299Validate the given JSON data against the Pydantic model.300 301Args:302    json_data: The JSON data to validate.303    strict: Whether to enforce types strictly.304    extra: Whether to ignore, allow, or forbid extra data during model validation.305        See the [`extra` configuration value][pydantic.ConfigDict.extra] for details.306    context: Extra variables to pass to the validator.307    by_alias: Whether to use the field's alias when validating against the provided input data.308    by_name: Whether to use the field's name when validating against the provided input data.309 310Returns:311    The validated Pydantic model.312 313Raises:314    ValidationError: If `json_data` is not a JSON string or the object could not be validated.315TFr&r'r�r+)r/rk�
validate_json)r��	json_datar"r�r�r�r$r�s        rY�model_validate_json�BaseModel.model_validate_json�sT��@!���u����!4�#�N�7��
�316�)�)�7�7��E�X�8�317�	318r[c	�d�SnUSLaUSLa319[SSS9eURRXX4XVS9$)aValidate the given object with string data against the Pydantic model.320 321Args:322    obj: The object containing string data to validate.323    strict: Whether to enforce types strictly.324    extra: Whether to ignore, allow, or forbid extra data during model validation.325        See the [`extra` configuration value][pydantic.ConfigDict.extra] for details.326    context: Extra variables to pass to the validator.327    by_alias: Whether to use the field's alias when validating against the provided input data.328    by_name: Whether to use the field's name when validating against the provided input data.329 330Returns:331    The validated Pydantic model.332TFr&r'r�r+)r/rk�validate_strings)r�r(r"r�r�r�r$r�s        rY�model_validate_strings� BaseModel.model_validate_stringssS��4!���u����!4�#�N�7��
�333�)�)�:�:��e�x�;�334�	335r[c���[R"S[SS9 URR	S5nUb+[U[R5(dUR$U"U5$)Na>The `__get_pydantic_core_schema__` method of the `BaseModel` class is deprecated. If you are calling `super().__get_pydantic_core_schema__` when overriding the method on a Pydantic model, consider using `handler(source)` instead. However, note that overriding this method on models can lead to unexpected side effects.r�r�r|)	r�r�rr^rPr�r!�MockCoreSchemar|)r��source�handler�schemas    rY�__get_pydantic_core_schema__�&BaseModel.__get_pydantic_core_schema__8sb��336	�
�
�
�
'��
	337����!�!�"<�=����j���9U�9U�&V�&V��/�/�/��v��r[c��U"U5$)a�Hook into generating the model's JSON schema.338 339Args:340    core_schema: A `pydantic-core` CoreSchema.341        You can ignore this argument and call the handler with a new CoreSchema,342        wrap this CoreSchema (`{'type': 'nullable', 'schema': current_schema}`),343        or just call the handler with the original schema.344    handler: Call into Pydantic's internal JSON schema generation.345        This will raise a `pydantic.errors.PydanticInvalidForJsonSchema` if JSON schema346        generation fails.347        Since this gets called by `BaseModel.model_json_schema` you can override the348        `schema_generator` argument to that function to change JSON schema generation globally349        for a type.350 351Returns:352    A JSON schema, as a Python object.353r)r��core_schemar8s   rY�__get_pydantic_json_schema__�&BaseModel.__get_pydantic_json_schema__Ls��0�{�#�#r[c��g)a�This is intended to behave just like `__init_subclass__`, but is called by `ModelMetaclass`354only after basic class initialization is complete. In particular, attributes like `model_fields` will355be present when this is called, but forward annotations are not guaranteed to be resolved yet,356meaning that creating an instance of the class may fail.357 358This is necessary because `__init_subclass__` will always be called by `type.__new__`,359and it would require a prohibitively large refactor to the `ModelMetaclass` to ensure that360`type.__new__` was called in such a manner that the class would already be sufficiently initialized.361 362This will receive the same `kwargs` that would be passed to the standard `__init_subclass__`, namely,363any kwargs passed to the class definition that aren't used internally by Pydantic.364 365Args:366    **kwargs: Any keyword arguments passed to the class definition that aren't used internally367        by Pydantic.368 369Note:370    You may want to override [`__pydantic_on_complete__()`][pydantic.main.BaseModel.__pydantic_on_complete__]371    instead, which is called once the class and its fields are fully initialized and ready for validation.372Nr�r��kwargss  rY�__pydantic_init_subclass__�$BaseModel.__pydantic_init_subclass__frr[c��g)a�This is called once the class and its fields are fully initialized and ready to be used.373 374This typically happens when the class is created (just before375[`__pydantic_init_subclass__()`][pydantic.main.BaseModel.__pydantic_init_subclass__] is called on the superclass),376except when forward annotations are used that could not immediately be resolved.377In that case, it will be called later, when the model is rebuilt automatically or explicitly using378[`model_rebuild()`][pydantic.main.BaseModel.model_rebuild].379Nrr�s rY�__pydantic_on_complete__�"BaseModel.__pydantic_on_complete__}rr[c�.^�[R"X5nUbU$U[La[S5e[	US5(d[US35eUR380S(d"[UR;a[US35e[U[5(dU4n[R"X5m[STR555n[R"TR5TR55(a"T(aUn[R"XU5 U$UR381SnU(dUnO[U4SjU55nUR382S	=(d UnUR!U5n[["R%[R&"TR5555n[R("Xe5n	[R*"XXe5nUbUsSSS5 $U	bU	sSSS5 $[,R."S383S9=(d 0n384UR1U385S9 [R4"XvXX5n[R"XX6U5 SSS5 U$![2a NEf=f!,(df   W$=f)
NzAType parameters should be placed on typing.Generic, not BaseModel�__parameters__zG cannot be parametrized because it does not inherit from typing.Generic�386parametersz is not a generic classc3�$# �UHov� M g7fr]r)�.0r�s  rY�	<genexpr>�.BaseModel.__class_getitem__.<locals>.<genexpr>�s���@�*?�Q�q�*?�s��argsc3�R># �UHn[R"UT5v� M g7fr])r �
replace_types)rL�arg�typevars_maps  �rYrMrN�s#����_�S^�C�Y�4�4�S�,�G�G�S^�s�$'�originr�)r)r)r �get_cached_generic_type_earlyrCr�r�rr�	__bases__r��tuple�map_generic_model_argumentsr�r&�
all_identicalr��set_cached_generic_typer�dict�fromkeys�iter_contained_typevars�generic_recursion_self_type�get_cached_generic_type_later%rrr.�create_generic_submodel)r��typevar_values�cached�submodel�parent_argsrOrT�387model_namer��maybe_self_typerrSs           @rY�__class_getitem__�BaseModel.__class_getitem__�sZ����8�8��M�����M��)���_�`�`��s�,�-�-��s�e�#j�k�l�l��0�0��>�7�RU�R_�R_�C_��s�e�#:�;�<�<��.�%�0�0�,�.�N�!�<�<�S�Q���@�,�*=�*=�*?�@�@������ 1� 1� 3�\�5H�5H�5J�K�K�P\��H��-�-�c�8�L�P��M�;�;�F�C�K��%���_�S^�_�_���6�6�x�@�G�C�F��7�7��=�J���
�
�i�?�?��@S�@S�@U�V�W��F��6�6�v�D��"�?�?��U[�b���%�!�E�D�388#�.�*�
E�D��!.� D� D�RS� T� Z�XZ�I��(�(�)�(�D�%�<�<�Z�QU�^���1�1�#�x�Y]�^�1E�4���3�����#E�D�4��s6�J�J�,I5�</J�5389J�?J�J�J�390Jc391���[U5nURU5n[US[UR55 [US[UR39255 [US[UR55 [US5(a
URc[USS5 U$[USURR5VVs0sHup4U[LdMX4_M snn5 U$s snnf)z$Returns a shallow copy of the model.r^r�r_rfN)rLr�rqrr^r�r_r�rfr�r)r�r�r�r�r�s     rYr��BaseModel.__copy__�s����4�j���K�K������:�t�D�M�M�':�;���/��d�6M�6M�1N�O���4�d�4�;W�;W�6X�Y��t�3�4�4��8Q�8Q�8Y��A�5�t�<���

��&�"&�";�";�"A�"A�"C�b�"C�$�!�q�Pa�Ga����"C�b�
����cs�C1�!C1c���[U5nURU5n[US[URUS95 [US[UR393US95 [US[
UR55 [US5(a
URc[USS5 U$[US[URR5VVs0sHupEU[LdMXE_M snnUS95 U$s snnf)z!Returns a deep copy of the model.r^)�memor�r_rfN)rLr�rqrr^r�rr_r�rfr�r)r�rlr�r�r�r�s      rYr��BaseModel.__deepcopy__�s����4�j���K�K������:�x��
�
�D�'I�J���/��$�:Q�:Q�X\�1]�^�	��4�d�4�;W�;W�6X�Y��t�3�4�4��8Q�8Q�8Y��A�5�t�<���

��&��4�+D�+D�+J�+J�+L�k�+L�4�1�PQ�Yj�Pj�$�!�$�+L�k�rv�w�
����ls�C7�$C7c�:>�[RUS5nX;a@X!n[US5(aURU[	U55$UR394U$[RUS5nU(a	X;aXQ$[URU5(a[TU]U5$[[	U5R<SU<35e![a+n[[	U5R<SU<35UeSnAff=f![a SnN�f=f)Nry�__get__� object has no attribute r�)rg�__getattribute__r�rorLrf�KeyError�AttributeErrorrT�	__class__�super)r��item�private_attributes�	attribute�exc�pydantic_extrarts      �rY�__getattr__�BaseModel.__getattr__�s"���!'�!8�!8��?W�!X���)�.�4�	��9�i�0�0�$�,�,�T�4��:�>�>�o��4�4�T�:�:�*�%+�%<�%<�T�CW�%X�N�"�d�&<�)�/�/��t�~�~�t�4�4�$�w�7��=�=�-��T�395�0C�0C�/F�F_�`d�_g�-h�i�i��# �o�(�D��J�,?�,?�+B�B[�\`�[c�)d�e�kn�n��o��&�*�%)�N�*�s*�C�D�396D�&D�D�D�Dc��URRU5=nb397U"XU5 gURX5=nbU"XU5 X0RU'ggr])r�rP�_setattr_handler)r�rVrW�setattr_handlers    rYrh�BaseModel.__setattr__s\��#'�#E�#E�#I�#I�$�#O�O��\���E�2�%)�%:�%:�4�%G�G�/�T���E�2�;J�2�2�4�8�Ur[c398�f^^�URnXR;a,[U<SURSURSUS35e[R399"U5(dKURRU5=mb [TS5(aU4Sj$[S$[XU5 g[X1S5m[T[5(a	[S	$[X1U5 [T[5(aU4S400j$UR RS5(a	[S$XR";aqUR RS5S
:wa[%SURSUS35eTc*X R&U'UR(R+U5 g[S$[S$)aXGet a handler for setting an attribute on the model instance.401 402Returns:403    A handler for setting an attribute on the model instance. Used for memoization of the handler.404    Memoizing the handlers leads to a dramatic performance improvement in `__setattr__`405    Returns `None` when memoization is not safe, then the attribute is set directly.406z is a ClassVar of `zR` and cannot be set on an instance. If you want to set a value on the class, use `�.z407 = value`.N�__set__c�&>�TRX5$r]�r�)rb�_namercrxs   �rYrm�,BaseModel._setattr_handler.<locals>.<lambda>-s����9J�9J�5�9Vr[rsrc�&>�TRX5$r]r�)rbr�rcrs   �rYrmr�As������e�1Ir[rlr�r��"z" object has no field "rtrr)rtrxrsrTr�is_valid_field_nameryrPr�rurqrQr�rrZ�propertyrOrR�408ValueErrorr�r_r`)r�rVrWr�rrxs    @@rYr~�BaseModel._setattr_handlers�����.�.�C��)�)�)�$��h�1�#�,�,��@E�EH�\�\�N�RS�TX�SY�Yc�e����0�0��6�6�!$�!;�!;�!?�!?��!E�E�I�R��y�)�4�4�V�V�7�	�B�B�#�D��6���3�d�+�D�409�$��0�0�/�0A�B�B��#�U�+��$��)�)�I�I��!�!�%�%�&;�<�<�/�0E�F�F��4�4�4��#�#�'�'��0�G�;�$�q�����6M�d�V�ST�%U�V�V��\�49�+�+�D�1��0�0�4�4�T�:��4�M�B�B�/�
�>�>r[c���URnXR;aAURUn[US5(aURU5 gURU	g[X!S5n[U[5(a[RX5$[X!SS9 XR;a[RX5 gURbXR;aURU	g[RX5 g![410a"n[
UR<SU<35UeSnAff=f![a& [
[!U5R<SU<35ef=f)N�411__delete__rp)rVrW)rtryr�r�rfrrrsrTrQr�rrg�__delattr__rZrRr�rL)r�rvr�rxryrs      rYr��BaseModel.__delattr__SsP���.�.�C��2�2�2� �7�7��=�	��9�l�3�3��(�(��.��h��1�1�$�7��412�3�d�+�D��$��0�0��)�)�$�5�5��#��5��/�/�/��"�"�4�.��(�(�4��AX�AX�9X��+�+�D�1�f��&�&�t�2��! �h�(�C�L�L�+;�;T�UY�T\�)]�^�dg�g��h��"&�f�(�D��J�,?�,?�+B�B[�\`�[c�)d�e�e�f�s$�
D�-D2�413D/�
D*�*D/�20E"c� �URUS9$)N)r�)r�)r��changess  rY�__replace__�BaseModel.__replace__vs���?�?�'�?�2�2r[c���URnU(a/UR5VVs0sHup#U[LdMX#_M nnnURURUR414US.$s snnf)N)r^r�r_rf)rfr�rr^r�r_)r�rsr�r�s    rY�__getstate__�BaseModel.__getstate__ysd���+�+���(/�
�
��V����1�DU�;U�t�q�t��G�V��
�
�"&�"9�"9�'+�'C�'C�$+�	415�	416��Ws417�A(�A(c���[USURS055 [USURS055 [USURS055 [USURS055 g)Nr_r�rfr^)rqrP)r��states  rY�__setstate__�BaseModel.__setstate__�sg����7����C\�^`�9a�b���2�E�I�I�>R�TV�4W�X���4�e�i�i�@V�XZ�6[�\���j�%�)�)�J��*C�Dr[c��[U[5(GaOURS=(d URnURS=(d URnX#LaH[	USS5[	USS5:Xa,UR418=(d 0UR419=(d 0:XdgURUR:Xag[U5RR5nURR5U::aURR5U::agU(a[R"U6OSnU"UR5U"UR5:H$[$![aT [R"UR5n[R"UR5nU"U5U"U5:Hs$f=f)NrTrfFTc�"�[R$r])r&�	_SENTINEL)�_s rYrm�"BaseModel.__eq__.<locals>.<lambda>�s��[a�[k�[kr[)r�rCrrtrQr�r^rLrRr��operator�420itemgetterrrr&�SafeGetItemProxy�NotImplemented)r��other�	self_type�421other_typer��getter�self_fields_proxy�other_fields_proxys        rY�__eq__�BaseModel.__eq__�s����%��+�+�!�>�>�x�H�Z�D�N�N�	�"�@�@��J�]�e�o�o�422��+���&<�d�C�w�u�Vl�nr�Gs�s��0�0�6�B�E�<T�<T�<Z�XZ�[� ��=�=�E�N�N�2�� $�D�z�=�=�B�B�D���=�=�%�%�'�<�7�E�N�N�<O�<O�<Q�Ua�<a� �@L��,�,�l�;�Qk��423S�!�$�-�-�0�F�5�>�>�4J�J�J�&�%�� �S�)/�(?�(?��
�
�(N�%�)/�)@�)@����)P�&�!�"3�4��?Q�8R�R�R�S�s�$E,�,AG424�	G425c��g)a.This signature is included purely to help type-checkers check arguments to class declaration, which426provides a way to conveniently set model_config key/value pairs.427 428```python429from pydantic import BaseModel430 431class MyModel(BaseModel, extra='allow'): ...432```433 434However, this may be deceiving, since the _actual_ calls to `__init_subclass__` will not receive any435of the config arguments, and will only receive any keyword arguments passed during class initialization436that are _not_ expected keys in ConfigDict. (This is due to the way `ModelMetaclass.__new__` works.)437 438Args:439    **kwargs: Keyword arguments passed to the class definition, which set model_config440 441Note:442    You may want to override `__pydantic_init_subclass__` instead, which behaves similarly but is called443    *after* the class is fully initialized.444NrrAs  rY�__init_subclass__�BaseModel.__init_subclass__�rr[c#�# �URR5VVs/sH upURS5(aMX4PM" snnShv�N URnU(aUR5Shv�N ggs snnfN7N7f)zSo `dict(model)` works.r�N)r^r��445startswithr�)r�r�r�r�s    rY�__iter__�BaseModel.__iter__�sn���)-���)<�)<�)>�X�)>�v��a�l�l�SV�FW�F�Q�F�)>�X�X�X��'�'����{�{�}�$�$���Y�X�
%�s4�B446�B�B�B447�B�*B448�9B�:
B449�B450c�L�UR5SURS5S3$)N�(r��))�
__repr_name__�__repr_str__r�s rY�__repr__�BaseModel.__repr__�s+���$�$�&�'�q��):�):�4�)@�(A��C�Cr[c	#�T# �URR5VVs/sH%upUR(dMU[X54PM' nnnURR5H[upUR451R
U5nU(dM)UR(dM<X LaX4v� MGXRU54v� M] [RUS5nUbSUR55Shv�N UShv�N gs snnf![a SnNAf=fN'N7f)Nr�c3�,# �UH452upX4v� M g7fr]r)rLr�r�s   rYrM�*BaseModel.__repr_args__.<locals>.<genexpr>s���B�+A�4�1���+A�s�)r�r��reprrQr^rRrP�__repr_recursion__rgrqrs)r�r�r��computed_fields_repr_argsr�rzs      rY�
__repr_args__�BaseModel.__repr_args__�s
���453/3�.O�.O�.U�.U�.W�%454�.W�d�a�[\�[a�[a�!�Q��� �!�.W�	"�%455��M�M�'�'�)�D�A��,�,�0�0��3�E��u������=��$�J��4�4�Q�7�7�7�
*�	"�#�4�4�T�;O�P�N��%�B�>�+?�+?�+A�B�B�B�,�,�,��-%456��"�	"�!�N�	"��
C�,�sd�D(�D�D�AD(�D(�%#D(�	D�D(�<D$�=	D(�D&�D(�D!�D(� D!�!D(�&D(c�$�URS5$)N� )r�r�s rY�__str__�BaseModel.__str__
s��� � ��%�%r[�XThe `__fields__` attribute is deprecated, use the `model_fields` class property instead.)�categoryc�b�[R"S[SS9 [[	U5S05$)Nr�r��r�r�rR)r�r�rrQrLr�s rY�457__fields__�BaseModel.__fields__s/��458	�
�
�f�.��	459�460�t�D�z�#8�"�=�=r[�MThe `__fields_set__` attribute is deprecated, use `model_fields_set` instead.c�N�[R"S[SS9 UR$)Nr�r�r�)r�r�rr_r�s rY�__fields_set__�BaseModel.__fields_set__s'��	�
�
�[�.��	461�462�+�+�+r[�:The `dict` method is deprecated; use `model_dump` instead.�r�r�r�r�r�r�c	�^�[R"S[SS9 URUUUUUUS9$)Nr�r�r�r�)r�r�rr�)r�r�r�r�r�r�r�s       rYr[�BaseModel.dict*sC��	�
�
�H�.��	463�464������'�-�%�
�465�	466r[�?The `json` method is deprecated; use `model_dump_json` instead.)r�r�r�r�r�r��encoder�models_as_dictc	���[R"S[SS9 U[La[	S5eU[La[	S5eU	(a[	S5eURUUUUUUS9$)Nr�r�r�zMThe `encoder` argument is no longer supported; use field serializers instead.zUThe `models_as_dict` argument is no longer supported; use a model serializer instead.z9`dumps_kwargs` keyword arguments are no longer supported.r�)r�r�rrr�r�)467r�r�r�r�r�r�r�r�r��dumps_kwargss468          rY�json�BaseModel.jsonCs~��	�
�
�M�.��	469�470�+�+��k�l�l��!2�2��s�t�t���W�X�X��#�#����'�-�%�
$�471�	472r[�CThe `parse_obj` method is deprecated; use `model_validate` instead.c�X�[R"S[SS9 URU5$)Nr�r�r��r�r�rr)�r�r(s  rY�	parse_obj�BaseModel.parse_objes,��	�
�
�Q�.��	473�474�!�!�#�&�&r[��The `parse_raw` method is deprecated; if your data is JSON use `model_validate_json`, otherwise load the data then use `model_validate` instead.�utf8)�content_type�encoding�proto�allow_picklec��[R"S[SS9 SSKJn URUUUUUS9nUR%U5$![[4a�nSSKn	[U[5(aSn475O7[X�R5(aS	n476O[U[5(aS477n478OSn479[R"U480[U55SUS
.n[RR!UR"U/5eSnAff=f)Nr�r�r�r��parse�r�r�r�r�rzvalue_error.unicodedecodezvalue_error.jsondecode�value_error�481type_error)�__root__rK)r�r�r�482deprecatedr��load_str_bytesr�r�r�r��UnicodeDecodeError�JSONDecodeError�
pydantic_core�PydanticCustomErrorr�rrSrTr))r��br�r�r�r�r�r(ryr��type_str�errors            rY�	parse_raw�BaseModel.parse_rawos��	�
�
�
I�.��		483�	&�	[��&�&���)�!�)�'��C�8�!�!�#�&�&��+�I�&�	[���#�1�2�2�6���C�!5�!5�6�6�3���C��,�,�(��'��484&�9�9�(�C��H�M�$��	5�E� �/�/�C�C�C�L�L�SX�RY�Z�Z��)	[�s�A�C=�B"C8�8C=��The `parse_file` method is deprecated; load the data from file, then if your data is JSON use `model_validate_json`, otherwise `model_validate` instead.c��[R"S[SS9 SSKJn URUUUUUS9nUR
U5$)Nr�r�r�rr�r�)r�r�rr�r��	load_filer�)r��pathr�r�r�r�r�r(s        rY�485parse_file�BaseModel.parse_file�sT��	�
�
�
M�.��		486�	&��o�o���%��%��487���}�}�S�!�!r[�qThe `from_orm` method is deprecated; set `model_config['from_attributes']=True` and use `model_validate` instead.c��[R"S[SS9 URR	SS5(d488[SSS9eUR
U5$)Nrr�r�r#zHYou must set the config attribute `from_attributes=True` to use from_ormr�)r�r�rrOrPr/r)r�s  rY�from_orm�BaseModel.from_orm�s^��	�
�
�
W�.��		489����#�#�$5�t�<�<�#�Z�ae��
��!�!�#�&�&r[�DThe `construct` method is deprecated; use `model_construct` instead.c�^�[R"S[SS9 UR"SSU0UD6$)Nrr�r�r�r)r�r�rr�)r�r�r�s   rY�	construct�BaseModel.construct�s4��	�
�
�R�.��	490�491�"�"�E�{�E�f�E�Er[��The `copy` method is deprecated; use `model_copy` instead. See the docstring of `BaseModel.copy` for details about how to handle `include` and `exclude`.)r�r�r�r�c��[R"S[SS9 SSKJn [UR
USSXSS940U=(d 0D6nURcSnO9URR5VV	s0sHup�U	[LdMX�_M nnn	URcSn492O�URR5n493[UR5HnX�;dM494U495RU5 M [U5H'nX�R;dMURU5X�'M) U(aURUR5-nO[!UR5nU(aU[!U5-nUR#XX�XtS	9$s sn	nf)496a+Returns a copy of the model.497 498!!! warning "Deprecated"499    This method is now deprecated; use `model_copy` instead.500 501If you need `include` or `exclude`, use:502 503```python {test="skip" lint="skip"}504data = self.model_dump(include=include, exclude=exclude, round_trip=True)505data = {**data, **(update or {})}506copied = self.model_validate(data)507```508 509Args:510    include: Optional set or mapping specifying which fields to include in the copied model.511    exclude: Optional set or mapping specifying which fields to exclude in the copied model.512    update: Optional dictionary of field-value pairs to override field values in the copied model.513    deep: If True, the values of fields that are Pydantic models will be deep-copied.514 515Returns:516    A copy of the model with included, excluded and updated fields as specified.517r	r�r�r��copy_internalsF)�to_dictr�r�r�r�N)r�)r�r�rr�rr[�_iterrfr�rr�r�listr�r_r�r��_copy_and_set_values)r�r�r�r�r�rr�rsr�r�r�r�s            rYr�BaseModel.copy�sq��F	�
�
�
m�.��		518�	/��� � ��e�e�W�ej�
!�
�519��|��	520���$�$�,��G�(,�(A�(A�(G�(G�(I�h�(I���Q�Vg�Mg�t�q�t�(I�G�h��"�"�*�+/�E��+�+�0�0�2�E��$�1�1�2���?��I�I�a�L�3��&�\���/�/�/�%�z�z�!�}�E�H�"�521��5�5����
�E�J��T�9�9�:�J���#�g�,�&�J��2�2�4��T[�2�g�g��/is�4F�F�CThe `schema` method is deprecated; use `model_json_schema` instead.c�T�[R"S[SS9 URXS9$)Nrr�r��r�r�)r�r�rr4)r�r�r�s   rYr9�BaseModel.schema/s/��522	�
�
�Q�.��	523�524�$�$�h�$�R�Rr[�WThe `schema_json` method is deprecated; use `model_json_schema` and json.dumps instead.rc��[R"S[SS9 SSKnSSKJn UR"URXS94SU0UD6$)	Nrr�r�rr)�pydantic_encoderr�default)r�r�rr��deprecated.jsonr�dumpsr4)r�r�r�r�r�rs      rY�schema_json�BaseModel.schema_json;sU��	�
�
�e�.��	525�526	�5��z�z��!�!�8�!�O�527�$�528��529�	530r[�BThe `validate` method is deprecated; use `model_validate` instead.c�X�[R"S[SS9 URU5$)Nrr�r�r�)r�rWs  rY�validate�BaseModel.validateRs,��	�
�
�P�.��	531�532�!�!�%�(�(r[�LThe `update_forward_refs` method is deprecated; use `model_rebuild` instead.c�z�[R"S[SS9 U(a[S5eUR	SS9 g)Nr"r�r�z,`localns` arguments are not longer accepted.T)r	)r�r�rr�r)r��localnss  rY�update_forward_refs�BaseModel.update_forward_refs\s;��	�
�
�Z�.��	533�534��J�K�K������%r[�HThe private method `_iter` will be removed and should no longer be used.c�n�[R"S[SS9 SSKJn UR535"U/UQ70UD6$)Nr'r�r�rr)r�r�rr�rr�r�rOrBrs    rYr�BaseModel._iterks9��	�
�
�V�.��	536�537	/��#�#�D�:�4�:�6�:�:r[�WThe private method `_copy_and_set_values` will be removed and should no longer be used.c�n�[R"S[SS9 SSKJn UR538"U/UQ70UD6$)Nr+r�r�rr)r�r�rr�rrr)s    rYr�BaseModel._copy_and_set_valuesxs9��539	�
�
�e�.��	540�541	/��2�2�4�I�$�I�&�I�Ir[�MThe private method `_get_value` will be removed and should no longer be used.c�n�[R"S[SS9 SSKJn UR542"U/UQ70UD6$)Nr.r�r�rr)r�r�rr�r�543_get_value)r�rOrBrs    rYr0�BaseModel._get_value�s9��	�
�
�[�.��	544�545	/��(�(��>�t�>�v�>�>r[�RThe private method `_calculate_keys` will be removed and should no longer be used.c�n�[R"S[SS9 SSKJn UR546"U/UQ70UD6$)Nr2r�r�rr)r�r�rr�r�_calculate_keysr)s    rYr4�BaseModel._calculate_keys�s9��547	�
�
�`�.��	548�549	/��-�-�d�D�T�D�V�D�Dr[r)r�r550�return�None)r6zdict[str, FieldInfo])r6zdict[str, ComputedFieldInfo])r6�dict[str, Any] | None)r6r�r])r�zset[str] | Noner�r551r6r)r�zMapping[str, Any] | Noner��boolr6r)r�zLiteral['json', 'python'] | strr��IncEx | Noner�r:r��552Any | Noner��bool | Noner�r9r�r9r�r9r�r9r�r9r��'bool | Literal['none', 'warn', 'error']r��Callable[[Any], Any] | Noner�r9r�r<r6�dict[str, Any]) r�z553int | Noner�r9r�r:r�r:r�r;r�r<r�r9r�r9r�r9r�r9r�r9r�r=r�r>r�r9r�r<r6r�)r�r9r�r�r�ztype[GenerateJsonSchema]r�r2r�z)Literal['any_of', 'primitive_type_array']r6r?)r�ztuple[type[Any], ...]r6r�)r�r554r6r7)555r	r9r556r9r�intrzMappingNamespace | Noner6r<)r(r557r"r<r��ExtraValues | Noner#r<r�r;r�r<r$r<r6r)r.zstr | bytes | bytearrayr"r<r�rAr�r;r�r<r$r<r6r)r(r558r"r<r�rAr�r;r�r<r$r<r6r)r7�type[BaseModel]r8r*r6r8)r=r8r8r+r6r3)rBr559r6r7)r6r7)raz!type[Any] | tuple[type[Any], ...]r6z3type[BaseModel] | _forward_ref.PydanticRecursiveRef)r6r)rlzdict[int, Any] | Noner6r)rvr�r6r560)rVr�rWr561r6r7)rVr�rWr562r6z,Callable[[BaseModel, str, Any], None] | None)r�r563r6r)r6�dict[Any, Any])r�rCr6r7)r�r564r6r9)rBzUnpack[ConfigDict])r6rE)r6r�)r6z_repr.ReprArgs)r�r:r�r:r�r9r�r9r�r9r�r9r6�Dict[str, Any])r�r:r�r:r�r9r�r9r�r9r�r9r�r>r�r9r�r565r6r�)r(r566r6r)r�zstr | bytesr��567str | Noner�r�r��DeprecatedParseProtocol | Noner�r9r6r)r�z568str | Pathr�rEr�r�r�rFr�r9r6r)569r��+AbstractSetIntStr | MappingIntStrAny | Noner�rGr�r�r�r9r6r)r�r9r�r�r6rD)r�r9r�r�r�r570r6r�)rWr571r6r)r$r572r6r7)rOr573rBr574r6r575)drT�576__module__�__qualname__�__firstlineno__�__doc__r,rO�__annotations__r{r�DecoratorInfosr~r�r�r"�NoInitFieldr�r_rfr	r!r6r|rrkr��	__slots__r��__pydantic_base_init__r&�deprecated_instance_property�classmethodr�r�r�r�r�r�r�r�r�r0r1r4rr�rr)r/r3r:r>rCrFrgr�r�r{rhr~r�r�r�r�r�r�r�r�r�r$�Representationr�r�r��577__pretty__�
__rich_repr__r��typing_extensionsr�r�r�r[rr�r�r�r�rrrr9rr r%rrr0r4�__static_attributes__�
__classcell__)rts@rYrCrCwsm��� �H*4��L�&�5��'�&�@�A�A�=�&�&�S�,1��>�1�V�2�2�'�,�,�;�EP�D^�D^�D`��A�`�^�$O�N��FJ�!�#B�I�Q�G�G�E�.3��^�3�N�7�7�U�P�P�X�7�7��$^�]�u�"H�H�I�?�?��5781D�0O�0O�UZ�0[��-�[�s�(;�(G�(G�U�(S��X�S�B�2E�2Q�2Q�W\�2]��/�]�A��$1�#?�#?�f�*�$579� �"/�!9�!9�f�"�*�"580��581#0�":�":�f�#�*�#582��d�I��('+�H�#��(�(��7��)�7��(�(��@��)�@��'��'��,��,��J��J�X@D�RW� �J19� $� $�"� $�#�!&�"�(-� �<@�04�!&�15�!@583�.�@584��	@585�586�@587��
@588��@589��@590��@591��@592�"&�@593��@594�:�@595�.�@596��@597� $/�!@598�"599�#@600�J"�"� $� $�"� $�#�!&�"�(-� �<@�04�!&�15�#B��B��	B�601�B��
B��B��B��B��B��B�"&�B��B�:�B�.�B� �!B�"$/�#B�$602
�%B�H��0�5G�+�$603�CK�$604��$605��$606�3�	$607�608�$609�@�$610�611�$612��$613�L�5��5�4�614��!�'(�48�
:615��:616��	:617�618"%�:619�2�
:620�621�:622��:623�x�624#�$(�'+�"� $�#�.625�
�.626��	.627�628"�.629�%�
.630��.631��.632��.633�634�.635��.636�`�637#�$(�"� $�#�)638�*�)639��	)640�641"�)642��
)643��)644��)645�646�)647��)648�V�649#�$(�"� $�#�#650�
�#651��	#652�653"�#654��
#655��#656��#657�658�#659��#660�J����&�$��$�&�$�661662�$��$�2����,����A�>�A�	<�A�F�&�*�	j�:	K�5	?�n	f�F	3�	663�E��7	&�r�664	�,%�D�-�:�(�(�6�6�M��-�-�@�@���'�'�4�4�L��%�%�0�0�J��(�(�6�6�M�&���!�!�b�mq��>���>���!�!�W���,�	��665,��!�!�"^�im�n�!%� $��#�!&�"�666��667��	668�669�670��
671��672��673�674�675�o�676�0�!�!�"c�nr�s�!%� $��#�!&�"�/@�0�677��678��	679�680�681��
682��683��684�-�685��686��687�688
�689�t�690�B��!�!�"g�rv�w�'�x��'���!�!�	E���$(��04�"�.'��.'�!�	.'�691�.'�.�
.'��.'�692�.'���.'�`��!�!�	I���$(��04�"�"��"�!�	"�693�"�.�
"��"�694�"���"�4��!�!�	S���695'���'���!�!�"h�sw�x�F�y��F��!�!�	i���@D�?C�(,��
Fh�=�Fh�=�	Fh�696&�Fh��
Fh�697�Fh��698Fh�P��!�!�"g�rv�w�"�8L�S��S�25�S�	�S�x��S���!�!�a���699"&�;O�700��701�58�702�ad�703�	�704�	��705706�$��!�!�"f�qu�v�)�w��)���!�!�V���&�	��707&��!�!�R�]a��;��;��!�!�a���J�	�J���!�!�W���?�	��708?��!�!�\���E�	�Er[)�	metaclass�ModelT)�bound)�709__config__rK�__base__rH�__validators__�__cls_kwargs__rIc��gr]r�	rer\rKr]rHr^r_rI�field_definitionss	         rYrDrD�s��r[)r\rKrHr^r_rIc��gr]rras	         rYrDrD�s��r[c���Uc[S[54nO[U[5(dU4nU=(d 0n0n	0n710UR	5HLup�[U[5(a.[U5S:wa[
SU<S3SS9eUSX�'USX�'MHX�U'MN Uc%[R"S5n
U
RS	nX�S711.nU(aX.S'UbX~S'U(aURU5 URU	5 U(aXS
'[R"U5n[R"XUS9unnnX�LaUUS'URU5 U"UUU4SUS.UD6$)a5!!! abstract "Usage Documentation"712    [Dynamic Model Creation](../concepts/models.md#dynamic-model-creation)713 714Dynamically creates and returns a new Pydantic model, in other words, `create_model` dynamically creates a715subclass of [`BaseModel`][pydantic.BaseModel].716 717!!! warning718    This function may execute arbitrary code contained in field annotations, if string references need to be evaluated.719 720    See [Security implications of introspecting annotations](https://docs.python.org/3/library/annotationlib.html#annotationlib-security) for more information.721 722Args:723    model_name: The name of the newly created model.724    __config__: The configuration of the new model.725    __doc__: The docstring of the new model.726    __base__: The base class or classes for the new model.727    __module__: The name of the module that the model belongs to;728        if `None`, the value is taken from `sys._getframe(1)`729    __validators__: A dictionary of methods that validate fields. The keys are the names of the validation methods to730        be added to the model, and the values are the validation methods themselves. You can read more about functional731        validators [here](https://docs.pydantic.dev/2.9/concepts/validators/#field-validators).732    __cls_kwargs__: A dictionary of keyword arguments for class creation, such as `metaclass`.733    __qualname__: The qualified name of the newly created model.734    **field_definitions: Field definitions of the new model. Either:735 736        - a single element, representing the type annotation of the field.737        - a two-tuple, the first element being the type and the second element the assigned value738          (either a default or the [`Field()`][pydantic.Field] function).739 740Returns:741    The new [model][pydantic.BaseModel].742 743Raises:744    PydanticUserError: If `__base__` and `__config__` are both passed.745�type[ModelT]r�zField definition for z� should a single element representing the type or a two-tuple, the first element being the type and the second element the assigned value (either a default or the `Field()` function).zcreate-model-field-definitionsr�rrrT)rLrHrKrIrO)�kwds�__orig_bases__F)�#__pydantic_reset_parent_namespace__�_create_model_module)rrCr�rWr��lenr/�sys�	_getframe�	f_globalsr��types�
resolve_bases�
prepare_class)rer\rKr]rHr^r_rIrb�fieldsr�f_name�f_def�f�	namespace�resolved_bases�meta�nsrfs                   rYrDrD�s���b�����3�5��
��%�
(�
(��;��#�)�r�N��F�"$�K�*�0�0�2�
���e�U�#�#��5�z�Q��'�+�F�:�6}�}�9���#(��(�K��"�1�X�F�N�"'���3����M�M�!����[�[��,�746�4?� Z�I��&�)����$0�.�!������(�
���V���$.�.�!��(�(��2�N��(�(��.�Y�N�D�"�d��%�'����
���R�������-2�'���
�r[)rUrBrVr�rWr747r6r7)rbrCrVr�rcr748r6r7)rer�r\�ConfigDict | NonerKrEr]r7rHr�r^�$dict[str, Callable[..., Any]] | Noner_r8rIrErb�Any | tuple[Any, Any]r6rB)rer�r\ryrKrEr]z'type[ModelT] | tuple[type[ModelT], ...]rHr�r^rzr_r8rIrErbr{r6re)rer�r\ryrKrEr]z.type[ModelT] | tuple[type[ModelT], ...] | NonerHrEr^rzr_r8rIrErbr{r6re)qrK�749__future__r�_annotationsr�rkrnr��collections.abcrrrr�	functoolsr�typingr	r750rrr
rrrrrrr�rVrrrrr�rr�	_internalrrrrr r!r"r#r$r%r&�751_migrationr'�aliasesr(r)�annotated_handlersr*r+�configr,r-�errorsr.r/�json_schemar0r1r2r3r4�plugin._schema_validatorr5�inspectr6�pathlibr7r8r9r:�_internal._fieldsr;�_internal._namespace_utilsr<�_internal._utilsr=r>�deprecated.parser?�DeprecatedParseProtocolrqr@rArB�__all__rWr�rErLr�r@r9rF�object_setattrrqrZrdriru�ModelMetaclassrCrZrTrDr{rr[rY�<module>r�s�� �3��752���.��%�������<�5�5�C�����*�,�J�+�B�u�u�>��!��K�K�4�<�E�E�F�F�&��&�e�C��H�o�t�T�&A�B��	�B���S��3�s�8�W�S�%���
�:N�5N�-O�QX�Y\�^c�dk�mq�dq�^r�Yr�Qs�s�t��y�t�%�4�4��753�,�754+�0�v�'�U�M�Q��M��jE�-�<�<�jE�Z1755���	+��756�757%)����;?�,0�#����"�	�758���
���9��*����/����759��760�761%)���;?�,0�#����"�	�762��6�
���9��*����/����763��&%)��?C�!�;?�,0�#�d��d�"�	d�764�d�=�
d��d�9�d�*�d��d�/�d��d�N ��)�r[
codekingpro/portable-devtools · Team Ai