+
    7*i  c                  sR   R t ^ RIHt ^ RIHtHt ^ RIHtHtH	t	H
t
Ht ^ RIHt ^ RIHtHt ^RIHt ^RIHtHt ^RIHtHt ]'       d2   ^R	IHt ^R
IHt ]! R]]3R7       ! R R]P<                  4      4       tM]P<                  tRt ]! R4      t! ! R R]]	]!,          ]R7      t"R# )z%RootModel class and type definitions.)annotations)copydeepcopy)TYPE_CHECKINGAnyGenericLiteralTypeVar)PydanticUndefined)Selfdataclass_transform)PydanticUserError)_model_construction_repr)	BaseModel_object_setattr)Field)PrivateAttrF)Zkw_only_defaultZfield_specifiersc                  s    ] tR t^tRtR# )_RootModelMetaclass N)__name__
__module____qualname____firstlineno____static_attributes__r       8/usr/lib/python3.14/site-packages/pydantic/root_model.pyr   r      s    CFr   r   	RootModelRootModelRootTypec                  s&  a  ] tR t^ t$ RtRtRtRtR]R&   V 3R lt	]
3R R lltR]n        ]R(R	 V 3R
 lll4       tR R ltR R ltR R ltR(R R llt]'       d!   RRRRRRRRRRRRRRRRRRRRRRR R/R! R" lltR# V 3R$ lltR% R& ltR'tV ;t# ))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                	s   < V P                   P                  R 4      pVe   \        RRR7      h\        SV `  ! R/ VB  R# )extraNz<`RootModel` does not support setting `model_config['extra']`zroot-model-extra)Zcoder   )Zmodel_configZgetr   super__init_subclass__)clsZkwargsr   	__class__s   &, r   r    ZRootModel.__init_subclass__4   sD      $$W-#NUg  	!+F+r   c                    V ^8  d   QhRRRR/# )   r   r   returnNoner   Zformat   "r   __annotate__RootModel.__annotate__<   s      N N 1 NRV Nr   c               	s    R pV'       d   V\         Jd   \        R4      hTpV P                  P                  WR7       R# )Tz_"RootModel.__init__" accepts either a single positional argument or arbitrary keyword arguments)Zself_instanceN)r   Z
ValueErrorZ__pydantic_validator__Zvalidate_python)selfr   ZdataZ__tracebackhide__s   "&, r   __init__ZRootModel.__init__<   sB     ,, u  D##33D3Mr   c               s$    V ^8  d   QhRRRRRR/# )r$   r   r   _fields_setzset[str] | Noner%   r	   r   r'   r(   r   r)   r*   I   s(     K K#4 K? K^b Kr   c                s$   < \         SV `  WR7      # )a  Create 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   r-   )r   model_construct)r!   r   r-   r"   s   &&&r   r.   ZRootModel.model_constructH   s     w&D&JJr   c                   V ^8  d   QhRR/# )r$   r%   dict[Any, Any]r   r'   r(   r   r)   r*   X   s     
 
n 
r   c                	s6    R V P                   RV P                  /# __dict____pydantic_fields_set__r1   r+      &r   __getstate__ZRootModel.__getstate__X   s     %t'C'C
 	
r   c               r#   )r$   stater0   r%   r&   r   r'   r(   r   r)   r*   ^   s     = =. =T =r   c                	sV    \        V R VR ,          4       \        V RVR,          4       R# )r3   r2   N)r   )r+   r7   s   &&r   __setstate__ZRootModel.__setstate__^   s&    7?X9YZj%
*;<r   c               r/   )r$   r%   r	   r   r'   r(   r   r)   r*   b   s      $ r   c                s    \        V 4      pVP                  V4      p\        VR\        V P                  4      4       \        VR\        V P
                  4      4       V# )z$Returns a shallow copy of the model.r2   r3   )type__new__r   r   r2   r3   )r+   r!   ms   &  r   __copy__ZRootModel.__copy__b   sK    4jKK:tDMM':;4d4;W;W6XYr   c               r#   )r$   memozdict[int, Any] | Noner%   r	   r   r'   r(   r   r)   r*   j   s      !6 $ r   c           	     s    \        V 4      pVP                  V4      p\        VR\        V P                  VR7      4       \        VR\        V P                  4      4       V# )z!Returns a deep copy of the model.r2   )r=   r3   )r9   r:   r   r   r2   r   r3   )r+   r=   r!   r;   s   &&  r   __deepcopy__ZRootModel.__deepcopy__j   sO    4jKK:xD'IJ 	4d4;W;W6XYr   modeZpythonincludeexcludecontextby_aliasexclude_unsetFexclude_defaultsexclude_noneexclude_computed_fields
round_tripwarningsserialize_as_anyc               sL    V ^8  d   QhRRRRRRRRRR	R
RRRRRRRRRRRRRRR/# )r$   r?   zLiteral['json', 'python'] | strr@   r   rA   rB   zdict[str, Any] | NonerC   zbool | NonerD   boolrE   rF   rG   rH   rI   z'bool | Literal['none', 'warn', 'error']rJ   r%   r   r'   r(   r   r)   r*   v   s     	 	 2	 		
 	 +	 "	  	 #	 	 &*	 	 >	 #	 	r   c               s    R# )a  This method is included just to get a more accurate return type for type checkers.
It is included in this `if TYPE_CHECKING:` block since no override is actually necessary.

See the documentation of `BaseModel.model_dump` for more details about the arguments.

Generally, this method will have a return type of `RootModelRootType`, assuming that `RootModelRootType` is
not a `BaseModel` subclass. If `RootModelRootType` is a `BaseModel` subclass, then the return
type will likely be `dict[str, Any]`, as `model_dump` calls are recursive. The return type could
even be something different, in the case of a custom serializer.
Thus, `Any` is used here to catch all of these cases.
Nr   )r+   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   s   &$$$$$$$$$$$$r   
model_dumpZRootModel.model_dumpv   s    6 r   c               r#   )r$   otherr   r%   rK   r   r'   r(   r   r)   r*      s     / /C /D /r   c                	s   < \        V\        4      '       g   \        # V P                  R ,          P                  VP                  R ,          P                  8H  ;'       d    \
        SV `  V4      # r   )Z
isinstancer   ZNotImplementedZ__pydantic_fields__Z
annotationr   __eq__)r+   rM   r"   s   &&r   rO   ZRootModel.__eq__   s_    %++!!''/::e>W>W?

* / /.	/r   c               r/   )r$   r%   z_repr.ReprArgsr   r'   r(   r   r)   r*      s        ~  r   c              #  	s.   "   R V P                   3x  R# 5i)r   NrN   r4   r5   r   __repr_args__ZRootModel.__repr_args__   s     diis   r   )N)r   r   r   r   __doc__Z__pydantic_root_model__Z__pydantic_private__Z__pydantic_extra__Z__annotations__r    r   r,   Z__pydantic_base_init__Zclassmethodr.   r6   r8   r<   r>   r   rL   rO   rP   r   Z__classcell__)r"   s   @r   r   r       s    #
, 5F N '+H#K K K
= 	 5=	  		
  	 .2	 %)	 #(	 &+	 "'	 -2	  %	 AE	 &+	:/ /   r   )Z	metaclassN)r   )#rQ   Z
__future__r    Z_annotationsr   r   Ztypingr   r   r   r   r   Zpydantic_corer   Ztyping_extensionsr	   r
   Z r   Z	_internalr   r   Zmainr   r   Zfieldsr   ZPydanticModelFieldr   ZPydanticModelPrivateAttrZModelMetaclassr   Z__all__r   r   r   r   r   <module>rR      s    + 2  @ @ + 7  1 ,3?
 BTVnAopF1@@F qF-<<
/0 { 	7#45AT { r   