| Server IP : 217.160.0.135 / Your IP : 216.73.216.90 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 : /lib/python3/dist-packages/__pycache__/ |
Upload File : |
�
H�^N�
� �� � d gZ ddlmZmZ eefZn# e$ r eZdZY nw xY wd� Zd� Ze dk r2ddl
Z
e
j � � Ze�
e� � � � dS dS )�generic� )� ClassType�InstanceTypeNc �z � ����� � t � � � �� � fd�}t � t |i��j ��� fd�}i ��j ��� fd�}��� � fd�}� j |_ � j � � � |_ � j |_ � j |_ ||_ ||_ � |_
�fd�|_ �fd�|_ |S )z Create a simple generic functionc � �� | d j }t |j |t fi � � j D ]} �|�� � }|�ur
|| i |��c S � �| i |��S )Nr )� __class__�type�__name__�object�__mro__)�args�kw�cls�t�f�_gbt� _sentinel�funcs ����//usr/lib/python3/dist-packages/simplegeneric.py� _by_classzgeneric.<locals>._by_class s� �� ��1�g����c�l�S��L�"�5�5�=� %� %�A���Q� �"�"�A�� �!�!��q�$�~�"�~�~�%�%�%� "� �4��$��$�$�$� c �p �� � � D ])}t |t � � st |�d�� � ��*��� fd�}|S )zADecorator to add a method that will be called for the given typesz is not a type or classc �j �� �D ].}�� || � � | urt ��d|��� � ��/| S )Nz already has method for type )�
setdefault� TypeError)r r �_by_typer �typess ���r �decoratez,generic.<locals>.when_type.<locals>.decorate! sY �� ��
�
���&�&�q��+�+�1�4�4�#�?C�t�t�Q�Q�G�� � � 5� �Hr )�
isinstance�
classtypesr )r r r r r s ` ��r � when_typezgeneric.<locals>.when_type sp ��� �� � �A��a��,�,�
��34�1�1�6�� � �
� � � � � � � � �r c � �� � ��� fd�}|S )z>Decorator to add a method to be called for the given object(s)c � �� �D ]C}�� t |� � || f� � d | urt ��d|��� � ��D| S )N� z already has method for object )r �idr )r �o�
_by_objectr �obss ���r r z.generic.<locals>.when_object.<locals>.decorate/ si �� ��
�
���(�(��A����1��6�6�q�9��B�B�#�AE���q�q�I�� � � C� �Hr � )r( r r'