????

Your IP : 18.117.11.128


Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/attr/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/attr/__pycache__/_version_info.cpython-311.pyc

�

IfI���ddlmZddlmZddlmZmZeedddd���Gd�d	������Zd
S)�)�total_ordering�)�astuple)�attrib�attrsFT)�eq�order�slots�frozenc��eZdZdZee���Zee���Zee���Zee	���Z
ed���Zd�Z
d�Zd�ZdS)�VersionInfoa�
    A version object that can be compared to tuple of length 1--4:

    >>> attr.VersionInfo(19, 1, 0, "final")  <= (19, 2)
    True
    >>> attr.VersionInfo(19, 1, 0, "final") < (19, 1, 1)
    True
    >>> vi = attr.VersionInfo(19, 2, 0, "final")
    >>> vi < (19, 1, 1)
    False
    >>> vi < (19,)
    False
    >>> vi == (19, 2,)
    True
    >>> vi == (19, 2, 1)
    False

    .. versionadded:: 19.2
    )�typec��|�d��}t|��dkr|�d��|t|d��t|d��t|d��|d���S)z6
        Parse *s* and return a _VersionInfo.
        �.��finalrr�)�year�minor�micro�releaselevel)�split�len�append�int)�cls�s�vs   �I/opt/cloudlinux/venv/lib64/python3.11/site-packages/attr/_version_info.py�_from_version_stringz VersionInfo._from_version_string&sx��

�G�G�C�L�L���q�6�6�Q�;�;�
�H�H�W�����s��Q�q�T���#�a��d�)�)�3�q��t�9�9�1�Q�4�
�
�
�	
�c��|j|jurt|��}t|t��st�dt|��cxkrdks	nt�t|��dt|���|fS)z�
        Ensure *other* is a tuple of a valid length.

        Returns a possibly transformed *other* and ourselves as a tuple of
        the same length as *other*.
        r�N)�	__class__r�
isinstance�tuple�NotImplementedErrorr)�self�others  r�
_ensure_tuplezVersionInfo._ensure_tuple3s����>�U�_�,�,��E�N�N�E��%��'�'�	&�%�%��S��Z�Z�$�$�$�$�1�$�$�$�$�%�%��t�}�}�\�s�5�z�z�\�*�E�1�1r!c�p�	|�|��\}}n#t$r
tcYSwxYw||kS�N�r*r'�NotImplemented�r(r)�us�thems    r�__eq__zVersionInfo.__eq__FsS��	"��)�)�%�0�0�H�B����"�	"�	"�	"�!�!�!�!�	"�����T�z����/�/c�p�	|�|��\}}n#t$r
tcYSwxYw||kSr,r-r/s    r�__lt__zVersionInfo.__lt__NsS��	"��)�)�%�0�0�H�B����"�	"�	"�	"�!�!�!�!�	"����
�D�y�r3N)�__name__�
__module__�__qualname__�__doc__rrrrr�strr�classmethodr r*r2r5�r!rr
r

s���������(�6�s����D��F�����E��F�����E��6�s�#�#�#�L��

�

��[�

�2�2�2�&�������r!r
N)�	functoolsr�_funcsr�_makerrr
r<r!r�<module>r@s���%�$�$�$�$�$������� � � � � � � � ����%�u�D��6�6�6�J�J�J�J�J�J�J�7�6���J�J�Jr!