U
    9%e                     @   s.   d dl mZ ddlmZ edddd ZdS )	    )Proxy   )compatibilityF)Zis_backward_compatiblec                 C   sB   t | tr:| jjr.td| jj d| dn|| j_| S | S d S )NzJTried to annotate a value that already had a type on it! Existing type is z and new type is z. This could happen if you tried to annotate a function parameter value (in which case you should use the type slot on the function signature) or you called annotate on the same value twice)
isinstancer   nodetypeRuntimeError)valr    r
   P/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/torch/fx/annotate.pyannotate   s    
r   N)Ztorch.fx.proxyr   Z_compatibilityr   r   r
   r
   r
   r   <module>   s   