%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/blinker/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/blinker/__pycache__/_utilities.cpython-312.pyc

�

�]ue(���ddlmZddlZddlmZddlmZejeje
e
fee
fZGd�d�Z
de
_Gd�d�Zdd	�ZeefZGd
�de�Z	d	dd�Zdd
�ZGd�d�Zy)�)�annotationsN)�ref)�BoundMethodWeakrefc��eZdZd�Zd�Zd�Zy)�_symbolc� �|x|_|_y)zConstruct a new named symbol.N)�__name__�name)�selfr
s  �4/usr/lib/python3/dist-packages/blinker/_utilities.py�__init__z_symbol.__init__s��$(�(��
��	�c�(�t|jffS�N)�symbolr
�rs r�
__reduce__z_symbol.__reduce__s����	�	�|�#�#rc��|jSr)r
rs r�__repr__z_symbol.__repr__s���y�y�rN)r	�
__module__�__qualname__r
rr�rrrrs��)�$�rrrc��eZdZdZiZd�Zy)ra?A constant symbol.

    >>> symbol('foo') is symbol('foo')
    True
    >>> symbol('foo')
    foo

    A slight refinement of the MAGICCOOKIE=object() pattern.  The primary
    advantage of symbol() is its repr().  They are also singletons.

    Repeated calls of symbol('name') will all return the same instance.

    c��	|j|S#t$r(|jj|t|��cYSwxYwr)�symbols�KeyError�
setdefaultr)�clsr
s  r�__new__zsymbol.__new__+s@��	?��;�;�t�$�$���	?��;�;�)�)�$���
�>�>�	?�s��.A�AN)r	rr�__doc__rrrrrrrs����G�?rc� �t|d�r*t|j�t|j�fSt|d�r*t|j�t|j
�fSt
|ttf�r|St|�S)N�__func__�im_func)	�hasattr�idr"�__self__r#�im_self�
isinstance�int�str)�objs r�hashable_identityr,2sj���s�J���3�<�<� �"�S�\�\�"2�3�3�	��i�	 ��3�;�;���C�K�K��1�1�	�C�#�s��	$��
��#�w�rc�&�eZdZUdZded<ded<y)�annotatable_weakrefz7A weakref.ref that supports custom instance attributes.zt.Optional[IdentityType]�receiver_id�	sender_idN)r	rrr �__annotations__rrrr.r.@s��A�)�)�'�'rr.c��t|�r
t||�}nt||�}|j�D]\}}t	|||��|S)zReturn an annotated weak ref.)�callable�callable_referencer.�items�setattr)�object�callbackr�weak�key�values      r�	referencer<GsS�����!�&�(�3��"�6�8�4��'�k�'�'�)�"�
��U���c�5�!�"��Krc��t|d�r|j�
t||��St|d�r|j�
t||��St	||�S)z@Return an annotated weak ref, supporting bound instance methods.r')�target�	on_deleter&)r$r'rr&r.)r7r8s  rr4r4TsO���v�y�!�f�n�n�&@�!��8�D�D�	���	$����)D�!��8�D�D��v�x�0�0rc��eZdZdZd�Zd�Zy)�
lazy_propertyz(A @property that is only evaluated once.c�4�||_|j|_yr)�	_deferredr )r�deferreds  rr
zlazy_property.__init__`s��!����'�'��rc�r�|�|S|j|�}t||jj|�|Sr)rCr6r	)rr+rr;s    r�__get__zlazy_property.__get__ds5���;��K����s�#����T�^�^�,�,�e�4��rN)r	rrr r
rFrrrrArA]s��2�(�rrA)r+r7�return�IdentityTyper)rGr.)�
__future__r�typing�t�weakrefr�blinker._saferefr�Union�Tupler)r*rHrr	rr,�	WeakTypesr.r<r4rArrr�<module>rQs���"���/��w�w�q�w�w�s�C�x�(�#�s�2�3��	�	����?�?�0��$�%�	�(�#�(��
��
�1��r

Zerion Mini Shell 1.0