U
    ©Ê¹j¡  ã                   @   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/bwave/python/venv/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   