
    g                    d   S SK Jr  S SKrS SKrS SKJrJrJrJrJ	r	J
r
  S SKJr  SSKJrJr  SSKJr  SSKJr  \(       d  \rS	r\
\\\\   /\4   4   r\	" S
5      r\" SSS9SSS jj5       r\" SSS9SS\\S.           SS jj5       r\" SSS9SS\\S.             SS jj5       rg)    )annotationsN)TYPE_CHECKINGAnyCallableTypeTypeVarUnion)
deprecated   )DEFAULT_REF_TEMPLATEGenerateJsonSchema)TypeAdapter)PydanticDeprecatedSince20)parse_obj_as	schema_ofschema_json_ofTQ`parse_obj_as` is deprecated. Use `pydantic.TypeAdapter.validate_python` instead.)categoryc                    [         R                  " S[        SS9  Ub  [         R                  " S[        SS9  [	        U 5      R                  U5      $ )Nr   r   r   
stacklevelzVThe type_name parameter is deprecated. parse_obj_as no longer creates temporary modelsr   )warningswarnr   DeprecationWarningr   validate_python)type_obj	type_names      R/home/matz/Project1/venv/lib/python3.13/site-packages/pydantic/deprecated/tools.pyr   r      sN    
 MM[*
 d	

 u--c22    J`schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead.Ttitleby_aliasref_templateschema_generatorc                   [         R                  " S[        SS9  [        U 5      R	                  UUUS9nUb@  [        U[        5      (       a  XS'   U$ [         R                  " S[        SS9  U" U 5      US'   U$ )zSGenerate a JSON schema (as dict) for the passed model or dynamically generated one.r#   r   r   )r&   r(   r'   r%   zRPassing a callable for the `title` parameter is deprecated and no longer supportedr   )r   r   r   r   json_schema
isinstancestrr   )r   r%   r&   r'   r(   ress         r!   r   r   -   s     MMT*
 e

(
()! ) C
 eS!! L J MMd"
 !<CLJr"   O`schema_json_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead.c          
     v    [         R                  " S[        SS9  [        R                  " [        XX#US940 UD6$ )zSGenerate a JSON schema (as JSON) for the passed model or dynamically generated one.r.   r   r   r$   )r   r   r   jsondumpsr   )r   r%   r&   r'   r(   dumps_kwargss         r!   r   r   Q   sA     MMY*
 ::%xeuv
 r"   )N)r   ztype[T]r   r   r    NameFactory | Nonereturnr   )r   r   r%   r3   r&   boolr'   r,   r(   type[GenerateJsonSchema]r4   zdict[str, Any])r   r   r%   r3   r&   r5   r'   r,   r(   r6   r2   r   r4   r,   )
__future__r   r0   r   typingr   r   r   r   r   r	   typing_extensionsr
   r*   r   r   type_adapterr   r   r   __all__r,   NameFactoryr   r   r   r    r"   r!   <module>r>      sR   "   E E ( B & 0 3
7C49+s"2334 CL W3	3 P !%,1C  	
  / 	@ U !%,1C  	
  /  		r"   