o
    Zzj*  ã                   @   s@   d Z ddlmZ dededefdd„Zded	edefd
d„ZdS )a5  This module contains auxiliary functionality for building strings for __repr__ method.

Warning:
    Contents of this module are intended to be used internally by the library and *not* by the
    user. Changes to this module are not considered breaking changes and may not be documented in
    the changelog.
é    )ÚAnyÚobjÚkwargsÚreturnc                 K   s(   | j j› dd dd„ | ¡ D ƒ¡› d�S )a  Create ``__repr__`` string in the style ``Classname[arg1=1, arg2=2]``.

    The square brackets emphasize the fact that an object cannot be instantiated
    from this string.

    Attributes that are to be used in the representation, are passed as kwargs.
    ú[z, c                 s   s   � | ]
\}}t ||ƒV  qd S )N)Ú
_stringify)Ú.0ÚnameÚvalue© r   úO/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telegram/_utils/repr.pyÚ	<genexpr>)   s   € z1build_repr_with_selected_attrs.<locals>.<genexpr>ú])Ú	__class__Ú__name__ÚjoinÚitems)r   r   r   r   r   Úbuild_repr_with_selected_attrs   s   
	þÿr   ÚkeyÚvalc                 C   s    | › dt |ƒr|j› �S |› �S )Nú=)ÚcallableÚ__qualname__)r   r   r   r   r   r   -   s    r   N)Ú__doc__Útypingr   ÚobjectÚstrr   r   r   r   r   r   Ú<module>   s   