%PDF- %PDF-
Mini Shell

Mini Shell

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

�

5��ek��^�ddlZddlmZmZmZedd��ZGd�dej�Zy)�N)�Type�TypeVar�Union�TIntEnum�IntEnum)�boundc��eZdZed��Zed��Zedeededefd��Z	edeede
defd��Zedeedee
efdefd	��Z
ed
��Zed��Zed��Zed
��Zed��Zed��Zy)rc��|j|�tj||�}|j|d�xs|j	��|��|_||_|S�N)�_check_value�int�__new__�_extra_to_text�_prefix�_name_�_value_)�cls�value�vals   �*/usr/lib/python3/dist-packages/dns/enum.py�	_missing_zIntEnum._missing_sT��������k�k�#�u�%���'�'��t�4�Q�3�;�;�=�/�%��8Q��
�����
�c��|j�}t|t�st�|dks||kDr |j	�}t|�d|����y)Nrz$ must be an int between >= 0 and <= )�_maximum�
isinstancer
�	TypeError�_short_name�
ValueError)rr�max�names    rrzIntEnum._check_value!sQ���l�l�n���%��%��O��1�9�����?�?�$�D���v�%I�#��O�P�P�$rr�text�returnc��|j�}	||S#t$rYnwxYw|j|�}|r|S|j�}|j	|�r^|t|�dj
�rBt|t|�d�}|j|�	||�S#t$r|cYSwxYw|j��r)�upper�KeyError�_extra_from_textr�
startswith�len�isdigitr
rr�_unknown_exception_class)rr!r�prefixs    r�	from_textzIntEnum.from_text*s����z�z�|��	��t�9����	��	���$�$�T�*����L�������?�?�6�"�t�C��K�M�':�'B�'B�'D���S��[�]�+�,�E����U�#�
��5�z�!���
���
���*�*�,�,s��	#�#�!B)�)B7�6B7rc��|j|�	||�j}|j||�}|�|j	��|��}|S#t$rd}Y�7wxYwr)rr rrr)rrr!s   r�to_textzIntEnum.to_text>sj�������	��u�:�?�?�D��!�!�%��.���<��k�k�m�_�U�G�,�D�����	��D�	�s�A�A�Ac�v�t|t�r|j|�S|j|�||�S)a�Convert text or a value into an enumerated type, if possible.

        *value*, the ``int`` or ``str`` to convert.

        Raises a class-specific exception if a ``str`` is provided that
        cannot be converted.

        Raises ``ValueError`` if the value is out of range.

        Returns an enumeration from the calling class corresponding to the
        value, if one is defined, or an ``int`` otherwise.
        )r�strr,r)rrs  r�makezIntEnum.makeJs5���e�S�!��=�=��'�'�������5�z�rc��t�r)�NotImplementedError�rs rrzIntEnum._maximum^s��!�!rc�6�|jj�Sr)�__name__�lowerr4s rrzIntEnum._short_namebs���|�|�!�!�#�#rc��y)N��r4s rrzIntEnum._prefixfs��rc��yrr:)rr!s  rr&zIntEnum._extra_from_textjs��rc��|Srr:)rr�current_texts   rrzIntEnum._extra_to_textns���rc��tSr)rr4s rr*z IntEnum._unknown_exception_classrs���rN)r6�
__module__�__qualname__�classmethodrrrrr0r,r
r.rr1rrrr&rr*r:rrrrs1�������Q��Q��-�t�H�~�-�S�-�X�-��-�&�	�T�(�^�	�C�	�C�	��	���$�x�.���s�C�x���X����&�"��"��$��$����������������r)�enum�typingrrrrrr:rr�<module>rDs.��$�'�'��:�Y�/��\�d�l�l�\r

Zerion Mini Shell 1.0