HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
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)
Z
__future__rrr�	functoolsrZ_funcsr�_makerr	�objectrrrrr �<module>s