HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/attr/__pycache__/_version_info.cpython-312.pyc
�

��`r��~�ddlmZmZmZddlmZddlmZddlm	Z	m
Z
ee
dddd��Gd	�d
e���Zy)�)�absolute_import�division�print_function)�total_ordering�)�astuple)�attrib�attrsFT)�eq�order�slots�frozenc�z�eZdZdZee��Zee��Zee��Zee	��Z
ed��Zd�Z
d�Zd�Zy)�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���|jd�}t|�dk(r|jd�|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   �4/usr/lib/python3/dist-packages/attr/_version_info.py�_from_version_stringz VersionInfo._from_version_string%sZ��

�G�G�C�L���q�6�Q�;�
�H�H�W����Q�q�T��#�a��d�)�3�q��t�9�1�Q�4�
�	
�c���|j|jurt|�}t|t�st�dt|�cxkr
dks
t�t�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_tuple2si���>�>�U�_�_�,��E�N�E��%��'�%�%��S��Z�$�1�$�%�%�%�%�%��t�}�\�s�5�z�*�E�1�1r$c�`�	|j|�\}}||k(S#t$r	tcYSwxYw�N�r-r*�NotImplemented�r+r,�us�thems    r"�__eq__zVersionInfo.__eq__Es>��	"��)�)�%�0�H�B���T�z���#�	"�!�!�	"����-�-c�`�	|j|�\}}||kS#t$r	tcYSwxYwr/r0r2s    r"�__lt__zVersionInfo.__lt__Ms>��	"��)�)�%�0�H�B���D�y���#�	"�!�!�	"�r6N)�__name__�
__module__�__qualname__�__doc__r	rrrr�strr�classmethodr#r-r5r8�r$r"rr	sR���(�s��D����E����E��s�#�L��

��

�2�&�r$rN)
�
__future__rrr�	functoolsr�_funcsr�_maker	r
�objectrr?r$r"�<module>rEsE��@�@�$�� ���%�u�D��6�J�&�J�7��Jr$