
    ɯwg"                     :    d dl mZ ddlmZ  ed      d        Zy)    )Proxy   )compatibilityF)is_backward_compatiblec                     t        | t              rO| j                  j                  r&t	        d| j                  j                   d| d      || j                  _        | S | S )a  
    Annotates a Proxy object with a given type.

    This function annotates a val with a given type if a type of the val is a torch.fx.Proxy object
    Args:
        val (object): An object to be annotated if its type is torch.fx.Proxy.
        type (object): A type to be assigned to a given proxy object as val.
    Returns:
        The given val.
    Raises:
        RuntimeError: If a val already has a type in its node.
    zJTried 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
   s     V/home/mcse/projects/flask/flask-venv/lib/python3.12/site-packages/torch/fx/annotate.pyannotater      sh     #u88== "447HHMM? C226 8B C D D !CHHM

    N)torch.fx.proxyr   _compatibilityr   r    r   r   <module>r      s"      )e, -r   