�
�Wcd c s\ � d dl Z d dlZd dlZd dlZd dlZddlmZ d� Zd� Zd� Z d
d�Z
dd �ZdS )� N� )� constantsc sz � t j | � } t j | � r$| j }|j |j
fS t
| t j � rt | j � S t
| t j � rt | j � S d S �N)�inspectZunwrapZ
isfunctionZ__code__Zco_filenameZco_firstlineno�
isinstance� functools�partial�_get_function_source�funcZ
partialmethod)r Zcode� �//usr/lib64/python3.12/asyncio/format_helpers.pyr r
s� � ��>�>�$��D����$����}�}��� � �$�"5�"5�6�6��$� �)�)�*�*�#�D�I�I�.�.��$� �/�/�0�0�#�D�I�I�.�.��4� c sp � t | |d � }t | � }|r|d|d � d|d � �z
}|S )Nz at r z:r )�_format_callbackr )r �args� func_reprZsources r �_format_callback_sourcer sH � � ��t�T�2�I�
!�$�
'�F�
�v��3�F�1�I�3�3��q� �3�3�3� ��r c s� � g }| r|j d� | D � � |r)|j d� |j � D � � dj dj |� � S )z�Format function arguments and keyword arguments.
Special case for a single parameter: ('hello',) is formatted as ('hello').
c 3 sF K � | ] }t j |� �� �d S r ��reprlib�repr)�.0Zargr
r � <genexpr>�*_format_args_and_kwargs.<locals>.<genexpr>&