+
    i"                    Z   ^ RI Ht ^ RIHtHt ^ RIHtHtHtH	t	H
t
HtHt ^ RIHtHtHt ^RIHtHt ^RIHt ]'       d   ^RIHt ^RIHt ^R	IHt ]! R
]]]]3,          R7      t]! R4      t ! R R]]]3,          4      t ! R R]	],          4      t R R lt!RR R llt"RR R llt#R# )    )annotations)IteratorMapping)TYPE_CHECKINGAnyCallableGenericLiteralTypeVarUnion)
CoreSchemaSchemaSerializerSchemaValidator)PydanticErrorCodesPydanticUserError)PluggableSchemaValidator)PydanticDataclass)	BaseModel)TypeAdapterValSer)boundTc                  n    ] tR t^tRtRtRR/R R lltR R ltR R	 ltR
 R lt	R R lt
R R ltRtR# )MockCoreSchemazMocker for `pydantic_core.CoreSchema` which optionally attempts to
rebuild the thing it's mocking when one of its methods is accessed and raises an error if that fails.
attempt_rebuildNc               (    V ^8  d   QhRRRRRRRR/# )	   error_messagestrcoder   r   z&Callable[[], CoreSchema | None] | NonereturnNone )formats   "g/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pydantic/_internal/_mock_val_ser.py__annotate__MockCoreSchema.__annotate__   s3     
3 
3
3 !	
3
 @
3 

3    c               	8    Wn         W n        W0n        R V n        R # N_error_message_code_attempt_rebuild_built_memo)selfr   r    r   s   &&$$r%   __init__MockCoreSchema.__init__   s     ,)-
 /.2r(   c                    V ^8  d   QhRRRR/# )r   keyr   r!   r   r#   )r$   s   "r%   r&   r'   (   s     2 2s 2s 2r(   c                	@    V P                  4       P                  V4      # r*   )
_get_built__getitem__)r0   r4   s   &&r%   r7   MockCoreSchema.__getitem__(   s     ,,S11r(   c                   V ^8  d   QhRR/# )r   r!   intr#   )r$   s   "r%   r&   r'   +   s     + + +r(   c                	>    V P                  4       P                  4       # r*   )r6   __len__r0   s   &r%   r<   MockCoreSchema.__len__+   s     ((**r(   c                   V ^8  d   QhRR/# )r   r!   zIterator[str]r#   )r$   s   "r%   r&   r'   .   s     , ,- ,r(   c                	>    V P                  4       P                  4       # r*   )r6   __iter__r=   s   &r%   rA   MockCoreSchema.__iter__.   s     ))++r(   c                   V ^8  d   QhRR/# )r   r!   r   r#   )r$   s   "r%   r&   r'   1   s     	F 	FJ 	Fr(   c                	    V P                   e   V P                   # V P                  '       d   V P                  4       pVe	   Wn         V# \        V P                  V P                  R7      hNr    r/   r.   r   r,   r-   r0   schemas   & r%   r6   MockCoreSchema._get_built1   s\    '###   **,F!#)  3 3$**EEr(   c                   V ^8  d   QhRR/# )r   r!   zCoreSchema | Noner#   )r$   s   "r%   r&   r'   <   s      * r(   c                	    R V n         V P                  '       d8   V P                  4       pVe   V# \        V P                  V P                  R7      hR # rE   rG   rH   s   & r%   rebuildMockCoreSchema.rebuild<   sI       **,F!'(;(;$**MMr(   )r.   r/   r-   r,   r+   )__name__
__module____qualname____firstlineno____doc__	__slots__r1   r7   r<   rA   r6   rM   __static_attributes__r#   r(   r%   r   r      s?     MI
3
 CG
32+,	F r(   r   c                  J    ] tR t^GtRtRtRR/R R lltR R ltR R	 ltR
t	R# )
MockValSerzMocker for `pydantic_core.SchemaValidator` or `pydantic_core.SchemaSerializer` which optionally attempts to
rebuild the thing it's mocking when one of its methods is accessed and raises an error if that fails.
r   Nc          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r   r   r   r    r   
val_or_serz"Literal['validator', 'serializer']r   z"Callable[[], ValSer | None] | Noner!   r"   r#   )r$   s   "r%   r&   MockValSer.__annotate__N   s<     0 00 !	0
 70 <0 
0r(   c               	Z    Wn         VR 8X  d   \        M\        V n        W n        W@n        R# )	validatorN)r,   r   r   _val_or_serr-   r.   )r0   r   r    rY   r   s   &&$$$r%   r1   MockValSer.__init__N   s'     ,.8K.G?M])-
 /r(   c                    V ^8  d   QhRRRR/# )r   itemr   r!   r"   r#   )r$   s   "r%   r&   rZ   [   s     	F 	F 	F 	Fr(   c                	    R pV P                   '       d    V P                  4       pVe   \        W14      # \        V P                  V4       \        V P                  V P
                  R7      h)TrF   )r.   getattrr]   r   r,   r-   )r0   r`   __tracebackhide__val_sers   &&  r%   __getattr__MockValSer.__getattr__[   s\        ++-G"w-- 	  $' 3 3$**EEr(   c                   V ^8  d   QhRR/# )r   r!   zValSer | Noner#   )r$   s   "r%   r&   rZ   f   s       r(   c                	    V P                   '       d8   V P                  4       pVe   V# \        V P                  V P                  R7      hR # rE   )r.   r   r,   r-   )r0   rd   s   & r%   rM   MockValSer.rebuildf   sA       ++-G"'(;(;$**MMr(   )r.   r-   r,   r]   )r,   r-   r]   r.   )
rO   rP   rQ   rR   rS   rT   r1   re   rM   rU   r#   r(   r%   rW   rW   G   s/     MI0 ?C0	F r(   rW   c                    V ^8  d   QhRRRR/# )r   adapterr   r!   r"   r#   )r$   s   "r%   r&   r&   p   s     $ $K $D $r(   c                   a  \        S P                  4      pRV RV R2pR V 3R llp\        VRV! R 4      R7      S n        \	        VRR	V! R
 4      R7      S n        \	        VRRV! R 4      R7      S n        R# )zSet `core_schema`, `validator` and `serializer` to mock core types on a type adapter instance.

Args:
    adapter: The type adapter instance to set the mocks on
z`TypeAdapter[z,]` is not fully defined; you should define `zC` and all referenced types, then call `.rebuild()` on the instance.c                    V ^8  d   QhRRRR/# )r   attr_fnzCallable[[TypeAdapter], T]r!   Callable[[], T | None]r#   )r$   s   "r%   r&   ,set_type_adapter_mocks.<locals>.__annotate__|   s      $> CY r(   c                   <a  R  VV 3R llpV# )c                   V ^8  d   QhRR/# r   r!   zT | Noner#   )r$   s   "r%   r&   Hset_type_adapter_mocks.<locals>.attempt_rebuild_fn.<locals>.__annotate__}        	 	 	r(   c                 F   < S P                  R ^R7      R Jd	   S! S 4      # R# F)raise_errors_parent_namespace_depthN)rM   )rk   rn   s   r%   handlerCset_type_adapter_mocks.<locals>.attempt_rebuild_fn.<locals>.handler}   s'    E1MUZZw''r(   r#   )rn   rz   rk   s   f r%   attempt_rebuild_fn2set_type_adapter_mocks.<locals>.attempt_rebuild_fn|       	 	
 r(   class-not-fully-definedc                    V P                   # r*   )core_schematas   &r%   <lambda>(set_type_adapter_mocks.<locals>.<lambda>   s    bnnr(   r    r   r\   c                    V P                   # r*   )r\   r   s   &r%   r   r      s    bllr(   r    rY   r   
serializerc                    V P                   # r*   )r   r   s   &r%   r   r      s    bmmr(   N)r   _typer   r   rW   r\   r   )rk   	type_reprundefined_type_error_messager|   s   f   r%   set_type_adapter_mocksr   p   s     GMM"I
	{"Nyk Z3 	4 !
  )$&*+DEG
 #$&*+BC	G $$&*+CD	Gr(   c               $    V ^8  d   QhRRRRRR/# )r   clsztype[BaseModel]undefined_namer   r!   r"   r#   )r$   s   "r%   r&   r&      s"     $ $ $# $[_ $r(   c                   a  RS P                    RV RS P                    R2pR V 3R llp\        VRV! R 4      R	7      S n        \        VRR
V! R 4      R7      S n        \        VRRV! R 4      R7      S n        R# )zSet `__pydantic_core_schema__`, `__pydantic_validator__` and `__pydantic_serializer__` to mock core types on a model.

Args:
    cls: The model class to set the mocks on
    undefined_name: Name of the undefined thing, used in error messages
`*` is not fully defined; you should define z, then call `z.model_rebuild()`.c                    V ^8  d   QhRRRR/# )r   rn   zCallable[[type[BaseModel]], T]r!   ro   r#   )r$   s   "r%   r&   %set_model_mocks.<locals>.__annotate__   s      $B G] r(   c                   <a  R  V V3R llpV# )c                   V ^8  d   QhRR/# rs   r#   )r$   s   "r%   r&   Aset_model_mocks.<locals>.attempt_rebuild_fn.<locals>.__annotate__   ru   r(   c                 F   < SP                  R ^R7      R Jd	   S ! S4      # R# rw   )model_rebuild)rn   r   s   r%   rz   <set_model_mocks.<locals>.attempt_rebuild_fn.<locals>.handler   s)      eQ OW\\s|#r(   r#   )rn   rz   r   s   f r%   r|   +set_model_mocks.<locals>.attempt_rebuild_fn   r~   r(   r   c                    V P                   # r*   __pydantic_core_schema__cs   &r%   r   !set_model_mocks.<locals>.<lambda>   
    Q5O5Or(   r   r\   c                    V P                   # r*   __pydantic_validator__r   s   &r%   r   r      
    Q5M5Mr(   r   r   c                    V P                   # r*   __pydantic_serializer__r   s   &r%   r   r      
    Q5N5Nr(   N)rO   r   r   rW   r   r   )r   r   r   r|   s   f&  r%   set_model_mocksr      s     CLL>CNCS T||n$6	8 !
  $2$&*+OP$C 
 ",$&*+MN	"C #-$&*+NO	#Cr(   c               $    V ^8  d   QhRRRRRR/# )r   r   ztype[PydanticDataclass]r   r   r!   r"   r#   )r$   s   "r%   r&   r&      s#     & &4 &c &gk &r(   c                
  a a ^RI Ho RS P                   RV RS P                   R2pR V V3R llp\        VRV! R	 4      R
7      S n        \        VRRV! R 4      R7      S n        \        VRRV! R 4      R7      S n        R# )zSet `__pydantic_validator__` and `__pydantic_serializer__` to `MockValSer`s on a dataclass.

Args:
    cls: The model class to set the mocks on
    undefined_name: Name of the undefined thing, used in error messages
)rebuild_dataclassr   r   z4, then call `pydantic.dataclasses.rebuild_dataclass(z)`.c                    V ^8  d   QhRRRR/# )r   rn   z&Callable[[type[PydanticDataclass]], T]r!   ro   r#   )r$   s   "r%   r&   )set_dataclass_mocks.<locals>.__annotate__   s      $J Oe r(   c                    <a  R  V VV3R llpV# )c                   V ^8  d   QhRR/# rs   r#   )r$   s   "r%   r&   Eset_dataclass_mocks.<locals>.attempt_rebuild_fn.<locals>.__annotate__   ru   r(   c                 6   < S! SR ^R7      R Jd	   S ! S4      # R# rw   r#   )rn   r   r   s   r%   rz   @set_dataclass_mocks.<locals>.attempt_rebuild_fn.<locals>.handler   s#     5RST\aas|#r(   r#   )rn   rz   r   r   s   f r%   r|   /set_dataclass_mocks.<locals>.attempt_rebuild_fn   s    	 	
 r(   r   c                    V P                   # r*   r   r   s   &r%   r   %set_dataclass_mocks.<locals>.<lambda>   r   r(   r   r\   c                    V P                   # r*   r   r   s   &r%   r   r      r   r(   r   r   c                    V P                   # r*   r   r   s   &r%   r   r      r   r(   N)dataclassesr   rO   r   r   rW   r   r   )r   r   r   r|   r   s   f&  @r%   set_dataclass_mocksr      s     0 CLL>CNCS T>>All^3	P !
  $2$&*+OP$C 
 ",$&*+MN	"C #-$&*+NO	#Cr(   N)zall referenced types)$
__future__r   collections.abcr   r   typingr   r   r   r	   r
   r   r   pydantic_corer   r   r   errorsr   r   plugin._schema_validatorr   r   r   mainr   type_adapterr   r   r   r   r   rW   r   r   r   r#   r(   r%   <module>r      s    " - Q Q Q G G : ?/ * 
8PRb'b!c	dCL/WS#X& /d& &R$N$N& &r(   