%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.9/site-packages/attr/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.9/site-packages/attr/__pycache__/_version_info.cpython-39.pyc

a

Pͣ_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�6/usr/lib/python3.9/site-packages/attr/_version_info.py�_from_version_string%s

$�z VersionInfo._from_version_stringcCsX|j|jurt|�}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_tuplecCs2z|�|�\}}Wnty(tYS0||kS�N�r)r&�NotImplemented�r'r(�usZthemrrr �__eq__Es

zVersionInfo.__eq__cCs2z|�|�\}}Wnty(tYS0||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

Zerion Mini Shell 1.0