o
    2g                     @  sL   d Z ddlmZ ddlmZmZ ddlmZ erddlZG dd deZ	dS )	z%Represent the :class:`.Trophy` class.    )annotations)TYPE_CHECKINGAny   )PRAWBaseNc                      sD   e Zd ZdZd fddZd fddZdddZdddZ  ZS )Trophya;  Represent a trophy.

    End users should not instantiate this class directly. :meth:`.Redditor.trophies` can
    be used to get a list of the redditor's trophies.

    .. include:: ../../typical_attributes.rst

    =============== ===================================================
    Attribute       Description
    =============== ===================================================
    ``award_id``    The ID of the trophy (sometimes ``None``).
    ``description`` The description of the trophy (sometimes ``None``).
    ``icon_40``     The URL of a 41x41 px icon for the trophy.
    ``icon_70``     The URL of a 71x71 px icon for the trophy.
    ``name``        The name of the trophy.
    ``url``         A relevant URL (sometimes ``None``).
    =============== ===================================================

    otherTrophy | Anyreturnboolc                   s$   t || jr| j|jkS t |S )z Check if two Trophies are equal.)
isinstance	__class__namesuper__eq__)selfr   r    J/home/garg/my-data/venv/lib/python3.10/site-packages/praw/models/trophy.pyr   "   s   zTrophy.__eq__redditpraw.Reddit_datadict[str, Any]c                   s.   t |tsJ d|v sJ t j||d dS )zInitialize a :class:`.Trophy` instance.

        :param reddit: An instance of :class:`.Reddit`.
        :param _data: The structured data, assumed to be a dict and key ``"name"`` must
            be provided.

        r   )r   N)r   dictr   __init__)r   r   r   r   r   r   r   (   s   zTrophy.__init__strc                 C  s   | j j d| jdS )z?Return an object initialization representation of the instance.z(name=))r   __name__r   r   r   r   r   __repr__4   s   zTrophy.__repr__c                 C  s   | j S )zReturn a name of the trophy.)r   r   r   r   r   __str__8   s   zTrophy.__str__)r   r	   r
   r   )r   r   r   r   )r
   r   )	r   
__module____qualname____doc__r   r   r   r    __classcell__r   r   r   r   r      s    
r   )
r#   
__future__r   typingr   r   baser   prawr   r   r   r   r   <module>   s    