;iNdZddlmZddlmZmZddlmZmZm Z m Z m Z ddl m Z ddlmZmZddlmZdd lmZmZdd lmZmZer5dd lmZdd lmZed eefGddejZnejZdZ e dZ!Gddee e!eZ"dS)z%RootModel class and type definitions.) annotations)copydeepcopy) TYPE_CHECKINGAnyGenericLiteralTypeVar)PydanticUndefined)Selfdataclass_transform)PydanticUserError)_model_construction_repr) BaseModel_object_setattr)Field) PrivateAttrF)kw_only_defaultfield_specifiersceZdZdS)_RootModelMetaclassN)__name__ __module__ __qualname__GC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\pydantic/root_model.pyrrsCF3rr) RootModelRootModelRootTypec eZdZUdZdZdZdZded<fdZe fd0d Z de _ e d1d2fd Z d3dZd4dZd5dZd1d6dZerddddddddddddd d7d+Zd8fd- Zd9d/ZxZS):r a!!! abstract "Usage Documentation" [`RootModel` and Custom Root Types](../concepts/models.md#rootmodel-and-custom-root-types) A Pydantic `BaseModel` for the root object of the model. Attributes: root: The root object of the model. __pydantic_root_model__: Whether the model is a RootModel. __pydantic_private__: Private fields in the model. __pydantic_extra__: Extra fields in the model. TNr!rootc |jd}|tddtjdi|dS)Nextraz<`RootModel` does not support setting `model_config['extra']`zroot-model-extra)coder) model_configgetrsuper__init_subclass__)clskwargsr% __class__s rr*zRootModel.__init_subclass__4sa $$W--  #NUg  "!++F+++++rreturnNonec zd}|r|turtd|}|j||dS)NTz_"RootModel.__init__" accepts either a single positional argument or arbitrary keyword arguments) self_instance)r ValueError__pydantic_validator__validate_python)selfr#data__tracebackhide__s r__init__zRootModel.__init__<sZ   ,,, uD #33D3MMMMMr _fields_setset[str] | Noner cJt||S)aSCreate a new model using the provided root object and update fields set. Args: root: The root object of the model. _fields_set: The set of fields to be updated. Returns: The new model. Raises: NotImplemented: If the model is not a subclass of `RootModel`. )r#r9)r)model_construct)r+r#r9r-s rr<zRootModel.model_constructHs"ww&&Dk&JJJrdict[Any, Any]c |j|jdS)N__dict____pydantic_fields_set__r?r5s r __getstate__zRootModel.__getstate__Xs '+'C   rstatecbt|d|dt|d|ddS)NrAr@)r)r5rDs r __setstate__zRootModel.__setstate__^s87?X9YZZZj% *;<<<<W ? /.. /r_repr.ReprArgsc# Kd|jfVdSrf)r#rBs r __repr_args__zRootModel.__repr_args__sdir)r#r!r.r/)N)r#r!r9r:r.r )r.r=)rDr=r.r/)r.r )rLrMr.r )rQr]rRrrSrrTr^rUr_rVr`rWr`rXr`rYr`rZr`r[rar\r`r.r)rdrr.r`)r.rl)rrr__doc____pydantic_root_model____pydantic_private____pydantic_extra____annotations__r*r r8__pydantic_base_init__ classmethodr<rCrFrKrOrrcrkrn __classcell__)r-s@rr r s  #,,,,,5FNNNNN'+H# K K K K K K[ K    ==== 5=-1$("'%*!&,1$@D%*      ://////        rr ) metaclassN)#ro __future__r _annotationsrrtypingrrrr r pydantic_corer typing_extensionsr r r _internalrrmainrrfieldsrPydanticModelFieldrPydanticModelPrivateAttrModelMetaclassr__all__r!r rrrrs++222222@@@@@@@@@@@@@@++++++7777777711111111,,,,,,,, =333333?????? BTVnAopppFFFFF1@FFqpFF-< G/00{ { { { { 7#45AT{ { { { { { r