%PDF- %PDF-
Direktori : /lib/python3/dist-packages/dns/__pycache__/ |
Current File : //lib/python3/dist-packages/dns/__pycache__/enum.cpython-312.pyc |
� 5��ek � �^ � d dl Z d dlmZmZmZ edd�� Z G d� de j � Zy)� N)�Type�TypeVar�Union�TIntEnum�IntEnum)�boundc � � e Zd Zed� � Zed� � Zedee dedefd�� Z edee de defd�� Zedee dee ef defd �� Z ed � � Zed� � Zed� � Zed � � Zed� � Zed� � Zy)r c � � | j |� t j | |� }| 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 �|dk s||kD r | j � }t |� d|� �� �y )Nr z$ must be an int between >= 0 and <= )�_maximum� isinstancer � TypeError�_short_name� ValueError)r r �max�names r r zIntEnum._check_value! sQ � ��l�l�n���%��%��O��1�9�����?�?�$�D���v�%I�#��O�P�P� $r r �text�returnc � � |j � } | | S # t $ r Y nw xY w| j |� }|r|S | j � }|j |� r^|t |� d j � rBt |t |� d � }| j |� | |� S # t $ r |cY S w xY w| j � �r )�upper�KeyError�_extra_from_textr � startswith�len�isdigitr r r �_unknown_exception_class)r r! 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�6B7r c � � | j |� | |� j }| j ||� }|�| j � � |� �}|S # t $ r d }Y �7w xY wr )r r r r r )r r r! s r �to_textzIntEnum.to_text>