
    bfH                     N    d dl mZmZmZ d dlmZ d dlmZ  G d de          ZdS )   )_DICT_VERSION_HASHTAG_DICT_VERSION_STATUS_DICT_VERSION_CARD)api_version)Mastodonc                       e Zd Z edde          dd            Z edde          d	d            Z edde          d	d            Z edde	          d	d            Z
dS )
r   z2.4.33.5.0Nc                 .    |                      |          S )z
        Old alias for :ref:`trending_tags() <trending_tags()>`

        Deprecated. Please use :ref:`trending_tags() <trending_tags()>` instead.
        )limit)trending_tags)selfr   s     ]/home/feoh/.local/pipx/venvs/mastodon-archive/lib/python3.11/site-packages/mastodon/trends.pytrendszMastodon.trends   s     !!!...    c                     |                      t                                }d|v r|d= |                     dd          r|                     dd||          S |                     dd||          S )	a  
        Fetch trending-hashtag information, if the instance provides such information.

        Specify `limit` to limit how many results are returned (the maximum number
        of results is 10, the endpoint is not paginated).

        Does not require authentication unless locked down by the administrator.

        Important versioning note: This endpoint does not exist for Mastodon versions
        between 2.8.0 (inclusive) and 3.0.0 (exclusive).

        Pass `lang` to override the global locale parameter, which may affect trend ordering.

        Returns a list of :ref:`hashtag dicts <hashtag dicts>`, sorted by the instance's trending algorithm,
        descending.
        langr	   T)cachedGETz/api/v1/trends/tagslang_overridez/api/v1/trends)_Mastodon__generate_paramslocalsverify_minimum_version_Mastodon__api_requestr   r   r   paramss       r   r   zMastodon.trending_tags   s    $ ''11Vv&&wt&<< 	[%%e-BFZ^%___%%e-=vUY%ZZZr   c                     |                      t                                }d|v r|d= |                     dd||          S )a  
        Fetch trending-status information, if the instance provides such information.

        Specify `limit` to limit how many results are returned (the maximum number
        of results is 10, the endpoint is not paginated).

        Pass `lang` to override the global locale parameter, which may affect trend ordering.

        Returns a list of :ref:`status dicts <status dicts>`, sorted by the instances's trending algorithm,
        descending.
        r   r   z/api/v1/trends/statusesr   r   r   r   r   s       r   trending_statuseszMastodon.trending_statuses1   sL     ''11Vv!!%)BFZ^!___r   c                     |                      t                                }d|v r|d= |                     dd||          S )ah  
        Fetch trending-link information, if the instance provides such information.

        Specify `limit` to limit how many results are returned (the maximum number
        of results is 10, the endpoint is not paginated).

        Returns a list of :ref:`card dicts <card dicts>`, sorted by the instances's trending algorithm,
        descending.
        r   r   z/api/v1/trends/linksr   r   r   s       r   trending_linkszMastodon.trending_linksC   sL     ''11Vv!!%)?W[!\\\r   )N)NN)__name__
__module____qualname__r   r   r   r   r   r   r   r!    r   r   r   r   	   s         ['#899/ / / :9/ ['#899[ [ [ :9[4 ['#788` ` ` 98`" ['#566] ] ] 76] ] ]r   r   N)	versionsr   r   r   utilityr   	internalsr   	Internalsr%   r   r   <module>r*      s    V U U U U U U U U U             , , , , , ,H] H] H] H] H]y H] H] H] H] H]r   