
    Igb              
          d dl mZmZmZmZ d dlmZ d dlmZ	  e	j                  d      Z edd      Zerd dlZej                  Znd d	lmZ d
edefdZdee   dededdfdZdee   dededefdZdedededeeef   fdZy)    )AnyDictTypeTypeVar)	BaseModel)VERSIONz2.Modelr   )boundN)ENCODERS_BY_TYPExreturnc                 0    t        t        |          |       S N)r   type)r   s    [/var/www/html/answerous/venv/lib/python3.12/site-packages/qdrant_client/_pydantic_compat.pyto_jsonable_pythonr      s    Q(++    model_classargskwargsc                 Z    t         r | j                  |i | y  | j                  |i | y r   )PYDANTIC_V2model_rebuildupdate_forward_refsr   r   r   s      r   r   r      s/    !!!4262'''88r   c                 V    t         r | j                  |i |S  | j                  |i |S r   )r   model_construct	constructr   s      r   r   r      s5    *{**D;F;;${$$d5f55r   modelc                 V    t         r | j                  |i |S  | j                  |i |S r   )r   
model_dumpdict)r   r   r   s      r   to_dictr#   #   s3    u000uzz4*6**r   )typingr   r   r   r   pydanticr   pydantic.versionr   PYDANTIC_VERSION
startswithr   r	   pydantic_corer   pydantic.jsonr   r   r   r#    r   r   <module>r,      s    + +  8)))$/{+ &99.,c ,c ,9T)_ 9S 9C 9TX 964; 6s 6c 6e 6+9 +S +C +DcN +r   