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-38.pyc
U

��`r�@sdddlmZmZmZddlmZddlmZddlm	Z	m
Z
ee
ddddd�Gd	d
�d
e���ZdS)�)�absolute_import�division�print_function)�total_ordering�)�astuple)�attrib�attrsFT)�eq�order�slots�frozenc@s\eZdZdZeed�Zeed�Zeed�Zee	d�Z
edd��Zdd�Z
dd�Zd	d
�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
    )�typecCsL|�d�}t|�dkr |�d�|t|d�t|d�t|d�|dd�S)z6
        Parse *s* and return a _VersionInfo.
        �.��finalrr�)�year�minor�micro�releaselevel)�split�len�append�int)�cls�s�v�r�4/usr/lib/python3/dist-packages/attr/_version_info.py�_from_version_string%s




�z VersionInfo._from_version_stringcCsX|j|jkrt|�}t|t�s"t�dt|�kr:dks@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�otherrrr �
_ensure_tuple2s
zVersionInfo._ensure_tuplecCs4z|�|�\}}Wntk
r*tYSX||kS�N�r)r&�NotImplemented�r'r(�usZthemrrr �__eq__Es

zVersionInfo.__eq__cCs4z|�|�\}}Wntk
r*tYSX||kSr*r+r-rrr �__lt__Ms

zVersionInfo.__lt__N)�__name__�
__module__�__qualname__�__doc__rrrrr�strr�classmethodr!r)r/r0rrrr r	s




rN)
�
__future__rrr�	functoolsr�_funcsr�_makerr	�objectrrrrr �<module>s