| Server IP : 217.160.0.135 / Your IP : 216.73.216.115 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/__pycache__/ |
Upload File : |
�
���apA � �" � d Z ddlZddlZddlZddlZddlZddlmZ ddlmZm Z m
Z
dZ ej d� � Z
ej j Zej j Z G d� de� � Zd � Zdd�Zd
� Zdd�Z G d� de� � Z ee� � Zd� Zd� Zd� ZdS )zv
Decorator module, see
https://github.com/micheles/decorator/blob/master/docs/documentation.md
for the documentation.
� N)�_GeneratorContextManager)�getfullargspec�iscoroutinefunction�isgeneratorfunctionz5.1.1z\s*def\s*([_\w][_\w\d]*)\s*\(c �~ � e Zd ZdZ ej � � ZdxZxZxZ xZ
xZZ d
d�Z
d� Zdd�Ze dd �� � ZdS )
�
FunctionMakerz�
An object with the ability to create functions with a given signature.
It has attributes name, doc, module, signature, defaults, dict and
methods update and make.
� Nc � � || _ |�r|j | _ | j dk rd| _ |j | _ |j | _ t j |� � �r�t |� � }t |di � � | _ dD ]!} t | | t || � � � � �"t | j � � D ]\ }
}t | d|
z |� � �t | j � � }t | j � � }
| j r;|� d| j z � � |
� d| j z � � n| j r|� d� � | j D ]4} |� d| z � � |
� | �d| ��� � �5| j r:|� d | j z � � |
� d | j z � � d
� |� � | _ d
� |
� � | _ |j � � � | _ |r|| _ |�|| _ |r|| _ |r|| _ |r|| _ |r|| _ t5 | d� � sJ �t5 | d� � st7 d
|z � � �d S )Nz<lambda>�_lambda_�__annotations__)�args�varargs�varkw�defaults�
kwonlyargs�kwonlydefaultszarg%d�*z%s=None�=z**�, �name� signaturez%You are decorating a non function: %s)�shortsignature�__name__r �__doc__�doc�
__module__�module�inspect� isroutiner �getattr�annotations�setattr� enumerater
�listr �appendr r �joinr �__dict__�copy�dictr �hasattr� TypeError)�self�funcr r r r r �funcdict�argspec�a�i�arg�allargs�allshortargss �+/usr/lib/python3/dist-packages/decorator.py�__init__zFunctionMaker.__init__@ s� � �'���� 1��
�D�I��y�J�&�&�&�� ��|�D�H��/�D�K�� ��&�&�
1�(��.�.��#*�4�1B�B�#G�#G�� �,� :� :�A��D�!�W�W�a�%8�%8�9�9�9�9�'�� �2�2� 4� 4�F�A�s��D�'�A�+�s�3�3�3�3��t�y�/�/��#�D�I�����<� (��N�N�3���#5�6�6�6� �'�'��d�l�(:�;�;�;�;��_� (��N�N�3�'�'�'��� :� :�A��N�N�9�q�=�1�1�1� �'�'�1�1�1�a�a�(8�9�9�9�9��:� ;��N�N�4�$�*�#4�5�5�5� �'�'��t�z�(9�:�:�:�!%���7�!3�!3���&*�i�i��&=�&=��#� �M�.�.�0�0�� �� ��D�I�� �&�D�N�� %�$�D�M�� ��D�H�� !� �D�K�� !� �D�I��t�V�$�$�$�$�$��t�[�)�)� L��C�d�J�K�K�K� L� L� c � � | j |_ t | dd� � |_ t | di � � |_ | j |_ | j pd|_ t | dd� � |_ t j d� � }|j �
dd� � }n# t $ r d}Y nw xY wt | d|� � |_ |j � |� � dS ) zD
Update the signature of func with the data in self
r Nr) r! � r �?r )r r r r r'