Current File : //usr/lib/python3/dist-packages/setuptools/_vendor/packaging/__pycache__/specifiers.cpython-312.pyc
�


_�d&��	��dZddlZddlZddlZddlmZmZmZmZm	Z	m
Z
mZmZm
Z
ddlmZddlmZe
eefZede��ZeeegefZd	ed
efd�ZGd�d
e�ZGd�dej4��ZGd�de�Zej:d�Zd	ed
eefd�Zded
efd�Z deedeed
eeeeeffd�Z!Gd�de�Z"y)z�
.. testsetup::

    from packaging.specifiers import Specifier, SpecifierSet, InvalidSpecifier
    from packaging.version import Version
�N)	�Callable�Iterable�Iterator�List�Optional�Set�Tuple�TypeVar�Union�)�canonicalize_version)�Version�UnparsedVersionVar)�bound�version�returnc�<�t|t�st|�}|S�N)�
isinstancer)rs �I/usr/lib/python3/dist-packages/setuptools/_vendor/packaging/specifiers.py�_coerce_versionr"s���g�w�'��'�"���N�c��eZdZdZy)�InvalidSpecifiera
    Raised when attempting to create a :class:`Specifier` with a specifier
    string that is invalid.

    >>> Specifier("lolwat")
    Traceback (most recent call last):
        ...
    packaging.specifiers.InvalidSpecifier: Invalid specifier: 'lolwat'
    N)�__name__�
__module__�__qualname__�__doc__�rrrr(s��rrc	�x�eZdZejdefd��Zejdefd��Zejde	de
fd��Zeejde
e
fd���Zejde
ddfd	��Zejdd
ede
e
de
fd��Zej	dd
eede
e
deefd��Zy)�
BaseSpecifierrc��y)z�
        Returns the str representation of this Specifier-like object. This
        should be representative of the Specifier itself.
        Nr��selfs r�__str__zBaseSpecifier.__str__5��rc��y)zF
        Returns a hash value for this Specifier-like object.
        Nrr#s r�__hash__zBaseSpecifier.__hash__<r&r�otherc��y)z�
        Returns a boolean representing whether or not the two Specifier-like
        objects are equal.

        :param other: The other object to check against.
        Nr�r$r)s  r�__eq__zBaseSpecifier.__eq__Br&rc��y)z�Whether or not pre-releases as a whole are allowed.

        This can be set to either ``True`` or ``False`` to explicitly enable or disable
        prereleases or it can be set to ``None`` (the default) to use default semantics.
        Nrr#s r�prereleaseszBaseSpecifier.prereleasesKr&r�valueNc��y)zQSetter for :attr:`prereleases`.

        :param value: The value to set.
        Nr�r$r/s  rr.zBaseSpecifier.prereleasesTr&r�itemr.c��y)zR
        Determines if the given item is contained within this specifier.
        Nr)r$r2r.s   r�containszBaseSpecifier.contains[r&r�iterablec��y)z�
        Takes an iterable of items and filters them so that only items which
        are contained within this specifier are allowed in it.
        Nr)r$r5r.s   r�filterzBaseSpecifier.filterar&rr)rrr�abc�abstractmethod�strr%�intr(�object�boolr,�propertyrr.�setterr4rrrr7rrrr!r!4s7����������	����#����
	����F��t���������X�d�^�����������$����	����S��x��~������
	���TX�� �!3�4��CK�D�>��	�$�	%���rr!)�	metaclassc	��eZdZdZdZdZejdezezdzejejz�Z
dddd	d
ddd
d�Zd0dede
eddfd�Zedefd��Zej$deddfd��Zedefd��Zedefd��Zdefd�Zdefd�Zedeeeffd��Zdefd�Zdedefd�Zdedefd �Zd!ededefd"�Z d!ededefd#�Z!d!ededefd$�Z"d!ededefd%�Z#d!ededefd&�Z$d!ed'edefd(�Z%d!ed'edefd)�Z&d!ededefd*�Z'd+e(eefdefd,�Z)	d1d+e*de
edefd-�Z+	d1d.e,e-de
ede.e-fd/�Z/y)2�	Specifiera?This class abstracts handling of version specifiers.

    .. tip::

        It is generally not required to instantiate this manually. You should instead
        prefer to work with :class:`SpecifierSet` instead, which can parse
        comma-separated version specifiers (which is what package metadata contains).
    z8
        (?P<operator>(~=|==|!=|<=|>=|<|>|===))
        a�
        (?P<version>
            (?:
                # The identity operators allow for an escape hatch that will
                # do an exact string match of the version you wish to install.
                # This will not be parsed by PEP 440 and we cannot determine
                # any semantic meaning from it. This operator is discouraged
                # but included entirely as an escape hatch.
                (?<====)  # Only match for the identity operator
                \s*
                [^\s;)]*  # The arbitrary version can be just about anything,
                          # we match everything except for whitespace, a
                          # semi-colon for marker support, and a closing paren
                          # since versions can be enclosed in them.
            )
            |
            (?:
                # The (non)equality operators allow for wild card and local
                # versions to be specified so we have to define these two
                # operators separately to enable that.
                (?<===|!=)            # Only match for equals and not equals

                \s*
                v?
                (?:[0-9]+!)?          # epoch
                [0-9]+(?:\.[0-9]+)*   # release

                # You cannot use a wild card and a pre-release, post-release, a dev or
                # local version together so group them with a | and make them optional.
                (?:
                    \.\*  # Wild card syntax of .*
                    |
                    (?:                                  # pre release
                        [-_\.]?
                        (alpha|beta|preview|pre|a|b|c|rc)
                        [-_\.]?
                        [0-9]*
                    )?
                    (?:                                  # post release
                        (?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
                    )?
                    (?:[-_\.]?dev[-_\.]?[0-9]*)?         # dev release
                    (?:\+[a-z0-9]+(?:[-_\.][a-z0-9]+)*)? # local
                )?
            )
            |
            (?:
                # The compatible operator requires at least two digits in the
                # release segment.
                (?<=~=)               # Only match for the compatible operator

                \s*
                v?
                (?:[0-9]+!)?          # epoch
                [0-9]+(?:\.[0-9]+)+   # release  (We have a + instead of a *)
                (?:                   # pre release
                    [-_\.]?
                    (alpha|beta|preview|pre|a|b|c|rc)
                    [-_\.]?
                    [0-9]*
                )?
                (?:                                   # post release
                    (?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
                )?
                (?:[-_\.]?dev[-_\.]?[0-9]*)?          # dev release
            )
            |
            (?:
                # All other operators only allow a sub set of what the
                # (non)equality operators do. Specifically they do not allow
                # local versions to be specified nor do they allow the prefix
                # matching wild cards.
                (?<!==|!=|~=)         # We have special cases for these
                                      # operators so we want to make sure they
                                      # don't match here.

                \s*
                v?
                (?:[0-9]+!)?          # epoch
                [0-9]+(?:\.[0-9]+)*   # release
                (?:                   # pre release
                    [-_\.]?
                    (alpha|beta|preview|pre|a|b|c|rc)
                    [-_\.]?
                    [0-9]*
                )?
                (?:                                   # post release
                    (?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
                )?
                (?:[-_\.]?dev[-_\.]?[0-9]*)?          # dev release
            )
        )
        z^\s*z\s*$�
compatible�equal�	not_equal�less_than_equal�greater_than_equal�	less_than�greater_than�	arbitrary)�~=�==z!=�<=�>=�<�>�===N�specr.rc���|jj|�}|std|�d���|jd�j	�|jd�j	�f|_||_y)a�Initialize a Specifier instance.

        :param spec:
            The string representation of a specifier which will be parsed and
            normalized before use.
        :param prereleases:
            This tells the specifier if it should accept prerelease versions if
            applicable or not. The default of ``None`` will autodetect it from the
            given specifiers.
        :raises InvalidSpecifier:
            If the given specifier is invalid (i.e. bad syntax).
        zInvalid specifier: '�'�operatorrN)�_regex�searchr�group�strip�_spec�_prereleases)r$rRr.�matchs    r�__init__zSpecifier.__init__�so�����"�"�4�(���"�%9�$��q�#A�B�B�
�K�K�
�#�)�)�+��K�K�	�"�(�(�*�'
��
�(��rc��|j�|jS|j\}}|dvr1|dk(r|jd�r|dd}t|�jryy)N)rLrNrMrKrQrL�.*���TF)r[rZ�endswithr�
is_prerelease)r$rUrs   rr.zSpecifier.prereleasessm�����(��$�$�$�
!�J�J���'��6�6��4��G�$4�$4�T�$:�!�#�2�,���w��-�-��rr/c��||_yr�r[r1s  rr.zSpecifier.prereleases�
��!��rc� �|jdS)z`The operator of this specifier.

        >>> Specifier("==1.2.3").operator
        '=='
        r�rZr#s rrUzSpecifier.operator����z�z�!�}�rc� �|jdS)zaThe version of this specifier.

        >>> Specifier("==1.2.3").version
        '1.2.3'
        rrgr#s rrzSpecifier.version%rhrc��|j�d|j��nd}d|jj�dt	|��|�d�S)aTA representation of the Specifier that shows all internal state.

        >>> Specifier('>=1.0.0')
        <Specifier('>=1.0.0')>
        >>> Specifier('>=1.0.0', prereleases=False)
        <Specifier('>=1.0.0', prereleases=False)>
        >>> Specifier('>=1.0.0', prereleases=True)
        <Specifier('>=1.0.0', prereleases=True)>
        �, prereleases=�rO�(�)>)r[r.�	__class__rr:�r$�pres  r�__repr__zSpecifier.__repr__.sU��� � �,��T�-�-�0�1��	��4�>�>�*�*�+�1�S��Y�M�#��b�A�Arc�4�dj|j�S)z�A string representation of the Specifier that can be round-tripped.

        >>> str(Specifier('>=1.0.0'))
        '>=1.0.0'
        >>> str(Specifier('>=1.0.0', prereleases=False))
        '>=1.0.0'
        z{}{})�formatrZr#s rr%zSpecifier.__str__@s���v�}�}�d�j�j�)�)rc�x�t|jd|jddk7��}|jd|fS)NrrrK��strip_trailing_zero)r
rZ)r$�canonical_versions  r�_canonical_speczSpecifier._canonical_specJs>��0��J�J�q�M�!%���A��$�!6�
���z�z�!�}�/�/�/rc�,�t|j�Sr)�hashryr#s rr(zSpecifier.__hash__Rs���D�(�(�)�)rr)c���t|t�r	|jt|��}nt||j�stS|j
|j
k(S#t$r	tcYSwxYw)a>Whether or not the two Specifier-like objects are equal.

        :param other: The other object to check against.

        The value of :attr:`prereleases` is ignored.

        >>> Specifier("==1.2.3") == Specifier("== 1.2.3.0")
        True
        >>> (Specifier("==1.2.3", prereleases=False) ==
        ...  Specifier("==1.2.3", prereleases=True))
        True
        >>> Specifier("==1.2.3") == "==1.2.3"
        True
        >>> Specifier("==1.2.3") == Specifier("==1.2.4")
        False
        >>> Specifier("==1.2.3") == Specifier("~=1.2.3")
        False
        )rr:ror�NotImplementedryr+s  rr,zSpecifier.__eq__Usi��&�e�S�!�
&����s�5�z�2���E�4�>�>�2�!�!��#�#�u�'<�'<�<�<��$�
&�%�%�
&�s�A"�"A4�3A4�opc�>�t|d|j|���}|S)N�	_compare_)�getattr�
_operators)r$r~�operator_callables   r�
_get_operatorzSpecifier._get_operatorrs+��.5��I�d�o�o�b�1�2�3�/
��!� r�prospectivec
���djttjtt|���dd�}|dz
}|j
d�||�xr|j
d�||�S)N�.���r_rNrL)�join�list�	itertools�	takewhile�_is_not_suffix�_version_splitr�)r$r�rR�prefixs    r�_compare_compatiblezSpecifier._compare_compatiblexs{�������$�$�^�^�D�5I�J�K�C�R�P�
��
	�$���'�t�!�!�$�'��T�:�
�?W�t�?Q�?Q�RV�?W���@
�	
rc�D�|jd�r_t|jd��}t|ddd��}t|�}t|�}t	||�\}}|dt|�}	|	|k(St
|�}
|
jst
|j�}||
k(S)Nr_Frvr`)rar
�publicr��_pad_version�lenr�local)r$r�rR�normalized_prospective�normalized_spec�
split_spec�split_prospective�padded_prospective�_�shortened_prospective�spec_versions           r�_compare_equalzSpecifier._compare_equal�s����=�=���%9��"�"��&�"�3�4���9�RW�X�O�(��8�J�
!/�/E� F��%1�1B�J�$O�!���
%7�7H��Z��$I�!�(�J�6�6�#�4�=�L�
 �%�%�%�k�&8�&8�9���,�.�.rc�(�|j||�Sr)r��r$r�rRs   r�_compare_not_equalzSpecifier._compare_not_equal�s���&�&�{�D�9�9�9rc�D�t|j�t|�kSr�rr�r�s   r�_compare_less_than_equalz"Specifier._compare_less_than_equal����
�{�)�)�*�g�d�m�;�;rc�D�t|j�t|�k\Srr�r�s   r�_compare_greater_than_equalz%Specifier._compare_greater_than_equal�r�r�spec_strc��t|�}||ksy|js8|jr,t|j�t|j�k(ryy�NFT)rrb�base_version�r$r�r�rRs    r�_compare_less_thanzSpecifier._compare_less_than�sT���x� ��
�T�!���!�!�k�&?�&?��{�/�/�0�G�D�<M�<M�4N�N��
rc��t|�}||kDsy|js8|jr,t|j�t|j�k(ry|j�,t|j�t|j�k(ryyr�)r�is_postreleaser�r�r�s    r�_compare_greater_thanzSpecifier._compare_greater_than�s����x� ��
�T�!���"�"�{�'A�'A��{�/�/�0�G�D�<M�<M�4N�N�����(��{�/�/�0�G�D�<M�<M�4N�N��
rc�h�t|�j�t|�j�k(Sr)r:�lowerr�s   r�_compare_arbitraryzSpecifier._compare_arbitrary�s&���;��%�%�'�3�t�9�?�?�+<�<�<rr2c�$�|j|�S)a;Return whether or not the item is contained in this specifier.

        :param item: The item to check for.

        This is used for the ``in`` operator and behaves the same as
        :meth:`contains` with no ``prereleases`` argument passed.

        >>> "1.2.3" in Specifier(">=1.2.3")
        True
        >>> Version("1.2.3") in Specifier(">=1.2.3")
        True
        >>> "1.0.0" in Specifier(">=1.2.3")
        False
        >>> "1.3.0a1" in Specifier(">=1.2.3")
        False
        >>> "1.3.0a1" in Specifier(">=1.2.3", prereleases=True)
        True
        �r4�r$r2s  r�__contains__zSpecifier.__contains__���&�}�}�T�"�"rc��|�|j}t|�}|jr|sy|j|j�}|||j
�S)alReturn whether or not the item is contained in this specifier.

        :param item:
            The item to check for, which can be a version string or a
            :class:`Version` instance.
        :param prereleases:
            Whether or not to match prereleases with this Specifier. If set to
            ``None`` (the default), it uses :attr:`prereleases` to determine
            whether or not prereleases are allowed.

        >>> Specifier(">=1.2.3").contains("1.2.3")
        True
        >>> Specifier(">=1.2.3").contains(Version("1.2.3"))
        True
        >>> Specifier(">=1.2.3").contains("1.0.0")
        False
        >>> Specifier(">=1.2.3").contains("1.3.0a1")
        False
        >>> Specifier(">=1.2.3", prereleases=True).contains("1.3.0a1")
        True
        >>> Specifier(">=1.2.3").contains("1.3.0a1", prereleases=True)
        True
        F)r.rrbr�rUr)r$r2r.�normalized_itemr�s     rr4zSpecifier.containssY��8���*�*�K�*�$�/��
�(�(���/3�.@�.@����.O�� ��$�,�,�?�?rr5c#�K�d}g}d|�|ndi}|D]S}t|�}|j|fi|��s�"|jr |s|js|j	|��Nd}|���U|s|r|D]}|���yyy�w)aOFilter items in the given iterable, that match the specifier.

        :param iterable:
            An iterable that can contain version strings and :class:`Version` instances.
            The items in the iterable will be filtered according to the specifier.
        :param prereleases:
            Whether or not to allow prereleases in the returned iterator. If set to
            ``None`` (the default), it will be intelligently decide whether to allow
            prereleases or not (based on the :attr:`prereleases` attribute, and
            whether the only versions matching are prereleases).

        This method is smarter than just ``filter(Specifier().contains, [...])``
        because it implements the rule from :pep:`440` that a prerelease item
        SHOULD be accepted if no other versions match the given specifier.

        >>> list(Specifier(">=1.2.3").filter(["1.2", "1.3", "1.5a1"]))
        ['1.3']
        >>> list(Specifier(">=1.2.3").filter(["1.2", "1.2.3", "1.3", Version("1.4")]))
        ['1.2.3', '1.3', <Version('1.4')>]
        >>> list(Specifier(">=1.2.3").filter(["1.2", "1.5a1"]))
        ['1.5a1']
        >>> list(Specifier(">=1.2.3").filter(["1.3", "1.5a1"], prereleases=True))
        ['1.3', '1.5a1']
        >>> list(Specifier(">=1.2.3", prereleases=True).filter(["1.3", "1.5a1"]))
        ['1.3', '1.5a1']
        Fr.NT)rr4rbr.�append)r$r5r.�yielded�found_prereleases�kwr�parsed_versions        rr7zSpecifier.filterEs�����<�����K�,C�[��
N�� �	"�G�,�W�5�N��t�}�}�^�2�r�2�"�/�/��4�#3�#3�%�,�,�W�5�#�G�!�M�	"�(�,�,�
���
�
�-�w�s�0A9�AA9�rlNr)0rrrr�_operator_regex_str�_version_regex_str�re�compile�VERBOSE�
IGNORECASErVr�r:rr=r]r>r.r?rUrrrr%r	ryr;r(r<r,�CallableOperatorr�rr�r�r�r�r�r�r�r�rr��UnparsedVersionr4rrrr7rrrrBrBks������\��|�R�Z�Z��%�%�(:�:�W�D�
�
�
�R�]�]�"��F�����"�
�
��	�J�(�S�(�H�T�N�(�d�(�4��T����.���"��"�$�"��"���#����������B�#�B�$*��*��0��s�C�x��0��0�*�#�*�=�F�=�t�=�:!��!�(8�!�
�w�
�c�
�d�
�*'/�'�'/��'/��'/�R:�g�:�S�:�T�:�<�G�<�3�<�4�<�<�w�<�c�<�d�<��g������2���C��D��>=�g�=�S�=�T�=�#��s�G�|�!4�#��#�,DH�,@�#�,@�2:�4�.�,@�	
�,@�^UY�;� �!3�4�;�CK�D�>�;�	�$�	%�;rrBz^([0-9]+)((?:a|b|c|rc)[0-9]+)$c���g}|jd�D]J}tj|�}|r |j|j	���:|j|��L|S)Nr�)�split�
_prefix_regexrW�extend�groupsr�)r�resultr2r\s    rr�r��sW���F��
�
�c�"� ���$�$�T�*����M�M�%�,�,�.�)��M�M�$�� ��Mr�segmentc�.��t�fd�dD��S)Nc3�@�K�|]}�j|����y�wr)�
startswith)�.0r�r�s  �r�	<genexpr>z!_is_not_suffix.<locals>.<genexpr>�s!������'-����6�"��s�)�dev�a�b�rc�post)�any)r�s`rr�r��s"�����1P����r�left�rightc��gg}}|jttjd�|���|jttjd�|���|j|t	|d�d�|j|t	|d�d�|jddgt
dt	|d�t	|d�z
�z�|jddgt
dt	|d�t	|d�z
�z�ttj|��ttj|��fS)Nc�"�|j�Sr��isdigit��xs r�<lambda>z_pad_version.<locals>.<lambda>�s������rc�"�|j�Srr�r�s rr�z_pad_version.<locals>.<lambda>�s��!�)�)�+�rrr�0)r�r�r�r�r��insert�max�chain)r�r��
left_split�right_splits    rr�r��s"�� �"��J����d�9�.�.�/D�d�K�L�M����t�I�/�/�0E�u�M�N�O����d�3�z�!�}�-�/�0�1����u�S��Q��0�2�3�4����a�#���Q��K��N�(;�c�*�Q�-�>P�(P�!Q�Q�R����q�3�%�#�a��Z��]�);�c�+�a�.�>Q�)Q�"R�R�S�����*�-�.��Y�_�_�k�5R�0S�T�Trc	�H�eZdZdZ	ddedeeddfd�Zedeefd��Z	e	jdeddfd	��Z	defd
�Zdefd�Zde
fd�Zd
edefddfd�Zd
edefd�Zde
fd�Zdeefd�Zdedefd�Z		ddedeedeedefd�Z	ddeedeedeefd�Zy)�SpecifierSetz�This class abstracts handling of a set of version specifiers.

    It can be passed a single specifier (``>=3.0``), a comma-separated list of
    specifiers (``>=3.0,!=3.1``), or no specifier at all.
    N�
specifiersr.rc��|jd�D�cgc]#}|j�s�|j���%}}t�}|D]}|jt	|���t|�|_||_ycc}w)aNInitialize a SpecifierSet instance.

        :param specifiers:
            The string representation of a specifier or a comma-separated list of
            specifiers which will be parsed and normalized before use.
        :param prereleases:
            This tells the SpecifierSet if it should accept prerelease versions if
            applicable or not. The default of ``None`` will autodetect it from the
            given specifiers.

        :raises InvalidSpecifier:
            If the given ``specifiers`` are not parseable than this exception will be
            raised.
        �,N)r�rY�set�addrB�	frozenset�_specsr[)r$r�r.�s�split_specifiers�parsed�	specifiers       rr]zSpecifierSet.__init__�sx��(0:�/?�/?��/D�R�!����	�A�G�G�I�R��R�"%���)�	-�I��J�J�y��+�,�	-� ��'���(����Ss
�B�Bc��|j�|jS|jsytd�|jD��S)Nc3�4K�|]}|j���y�wr�r.�r�r�s  rr�z+SpecifierSet.prereleases.<locals>.<genexpr>�s����6�Q�1�=�=�6�s�)r[r�r�r#s rr.zSpecifierSet.prereleases�s?�����(��$�$�$�
�{�{���6�$�+�+�6�6�6rr/c��||_yrrdr1s  rr.zSpecifierSet.prereleases�rerc�^�|j�d|j��nd}dt|��|�d�S)aA representation of the specifier set that shows all internal state.

        Note that the ordering of the individual specifiers within the set may not
        match the input string.

        >>> SpecifierSet('>=1.0.0,!=2.0.0')
        <SpecifierSet('!=2.0.0,>=1.0.0')>
        >>> SpecifierSet('>=1.0.0,!=2.0.0', prereleases=False)
        <SpecifierSet('!=2.0.0,>=1.0.0', prereleases=False)>
        >>> SpecifierSet('>=1.0.0,!=2.0.0', prereleases=True)
        <SpecifierSet('!=2.0.0,>=1.0.0', prereleases=True)>
        rkrlz<SpecifierSet(rn)r[r.r:rps  rrrzSpecifierSet.__repr__�sD��� � �,��T�-�-�0�1��	� ��D�	�}�S�E��4�4rc�X�djtd�|jD���S)anA string representation of the specifier set that can be round-tripped.

        Note that the ordering of the individual specifiers within the set may not
        match the input string.

        >>> str(SpecifierSet(">=1.0.0,!=1.0.1"))
        '!=1.0.1,>=1.0.0'
        >>> str(SpecifierSet(">=1.0.0,!=1.0.1", prereleases=False))
        '!=1.0.1,>=1.0.0'
        r�c3�2K�|]}t|����y�wr)r:r�s  rr�z'SpecifierSet.__str__.<locals>.<genexpr>s����;�!�s�1�v�;�s�)r��sortedr�r#s rr%zSpecifierSet.__str__�s"���x�x��;�t�{�{�;�;�<�<rc�,�t|j�Sr)r{r�r#s rr(zSpecifierSet.__hash__
s���D�K�K� � rr)c���t|t�rt|�}nt|t�stSt�}t	|j
|j
z�|_|j�|j�|j|_|S|j�|j�|j|_|S|j|jk(r|j|_|Std��)a�Return a SpecifierSet which is a combination of the two sets.

        :param other: The other object to combine with.

        >>> SpecifierSet(">=1.0.0,!=1.0.1") & '<=2.0.0,!=2.0.1'
        <SpecifierSet('!=1.0.1,!=2.0.1,<=2.0.0,>=1.0.0')>
        >>> SpecifierSet(">=1.0.0,!=1.0.1") & SpecifierSet('<=2.0.0,!=2.0.1')
        <SpecifierSet('!=1.0.1,!=2.0.1,<=2.0.0,>=1.0.0')>
        zFCannot combine SpecifierSets with True and False prerelease overrides.)rr:r�r}r�r�r[�
ValueError)r$r)r�s   r�__and__zSpecifierSet.__and__
s����e�S�!� ��'�E��E�<�0�!�!� �N�	�$�T�[�[�5�<�<�%?�@�	�����$��);�);�)G�%*�%7�%7�I�"����
�
�
*�u�/A�/A�/I�%)�%6�%6�I�"����
�
�%�"4�"4�
4�%)�%6�%6�I�"������
rc��t|ttf�rtt|��}nt|t�stS|j
|j
k(S)a�Whether or not the two SpecifierSet-like objects are equal.

        :param other: The other object to check against.

        The value of :attr:`prereleases` is ignored.

        >>> SpecifierSet(">=1.0.0,!=1.0.1") == SpecifierSet(">=1.0.0,!=1.0.1")
        True
        >>> (SpecifierSet(">=1.0.0,!=1.0.1", prereleases=False) ==
        ...  SpecifierSet(">=1.0.0,!=1.0.1", prereleases=True))
        True
        >>> SpecifierSet(">=1.0.0,!=1.0.1") == ">=1.0.0,!=1.0.1"
        True
        >>> SpecifierSet(">=1.0.0,!=1.0.1") == SpecifierSet(">=1.0.0")
        False
        >>> SpecifierSet(">=1.0.0,!=1.0.1") == SpecifierSet(">=1.0.0,!=1.0.2")
        False
        )rr:rBr�r}r�r+s  rr,zSpecifierSet.__eq__-sD��&�e�c�9�-�.� ��U��,�E��E�<�0�!�!��{�{�e�l�l�*�*rc�,�t|j�S)z7Returns the number of specifiers in this specifier set.)r�r�r#s r�__len__zSpecifierSet.__len__Gs���4�;�;��rc�,�t|j�S)z�
        Returns an iterator over all the underlying :class:`Specifier` instances
        in this specifier set.

        >>> sorted(SpecifierSet(">=1.0.0,!=1.0.1"), key=str)
        [<Specifier('!=1.0.1')>, <Specifier('>=1.0.0')>]
        )�iterr�r#s r�__iter__zSpecifierSet.__iter__Ks���D�K�K� � rr2c�$�|j|�S)arReturn whether or not the item is contained in this specifier.

        :param item: The item to check for.

        This is used for the ``in`` operator and behaves the same as
        :meth:`contains` with no ``prereleases`` argument passed.

        >>> "1.2.3" in SpecifierSet(">=1.0.0,!=1.0.1")
        True
        >>> Version("1.2.3") in SpecifierSet(">=1.0.0,!=1.0.1")
        True
        >>> "1.0.1" in SpecifierSet(">=1.0.0,!=1.0.1")
        False
        >>> "1.3.0a1" in SpecifierSet(">=1.0.0,!=1.0.1")
        False
        >>> "1.3.0a1" in SpecifierSet(">=1.0.0,!=1.0.1", prereleases=True)
        True
        r�r�s  rr�zSpecifierSet.__contains__Ur�r�	installedc����t�t�st�����|j��s
�jry|r!�jrt�j��t��fd�|jD��S)a�Return whether or not the item is contained in this SpecifierSet.

        :param item:
            The item to check for, which can be a version string or a
            :class:`Version` instance.
        :param prereleases:
            Whether or not to match prereleases with this SpecifierSet. If set to
            ``None`` (the default), it uses :attr:`prereleases` to determine
            whether or not prereleases are allowed.

        >>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.2.3")
        True
        >>> SpecifierSet(">=1.0.0,!=1.0.1").contains(Version("1.2.3"))
        True
        >>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.0.1")
        False
        >>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.3.0a1")
        False
        >>> SpecifierSet(">=1.0.0,!=1.0.1", prereleases=True).contains("1.3.0a1")
        True
        >>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.3.0a1", prereleases=True)
        True
        Fc3�D�K�|]}|j�������y�w)r�Nr�)r�r�r2r.s  ��rr�z(SpecifierSet.contains.<locals>.<genexpr>�s�����R��1�:�:�d��:�<�R�s� )rrr.rbr��allr�)r$r2r.r
s `` rr4zSpecifierSet.containsjsm���<�$��(��4�=�D�
���*�*�K��t�1�1����+�+��4�,�,�-�D��R�d�k�k�R�R�Rrr5c�r�|�|j}|jr8|jD]}|j|t|���}� t	|�Sg}g}|D]A}t|�}|jr|s|r�|j|��1|j|��C|s|r
|�t	|�St	|�S)a.Filter items in the given iterable, that match the specifiers in this set.

        :param iterable:
            An iterable that can contain version strings and :class:`Version` instances.
            The items in the iterable will be filtered according to the specifier.
        :param prereleases:
            Whether or not to allow prereleases in the returned iterator. If set to
            ``None`` (the default), it will be intelligently decide whether to allow
            prereleases or not (based on the :attr:`prereleases` attribute, and
            whether the only versions matching are prereleases).

        This method is smarter than just ``filter(SpecifierSet(...).contains, [...])``
        because it implements the rule from :pep:`440` that a prerelease item
        SHOULD be accepted if no other versions match the given specifier.

        >>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.3", "1.5a1"]))
        ['1.3']
        >>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.3", Version("1.4")]))
        ['1.3', <Version('1.4')>]
        >>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.5a1"]))
        []
        >>> list(SpecifierSet(">=1.2.3").filter(["1.3", "1.5a1"], prereleases=True))
        ['1.3', '1.5a1']
        >>> list(SpecifierSet(">=1.2.3", prereleases=True).filter(["1.3", "1.5a1"]))
        ['1.3', '1.5a1']

        An "empty" SpecifierSet will filter items based on the presence of prerelease
        versions in the set.

        >>> list(SpecifierSet("").filter(["1.3", "1.5a1"]))
        ['1.3']
        >>> list(SpecifierSet("").filter(["1.5a1"]))
        ['1.5a1']
        >>> list(SpecifierSet("", prereleases=True).filter(["1.3", "1.5a1"]))
        ['1.3', '1.5a1']
        >>> list(SpecifierSet("").filter(["1.3", "1.5a1"], prereleases=True))
        ['1.3', '1.5a1']
        r�)r.r�r7r=r
rrbr�)r$r5r.rR�filteredr�r2r�s        rr7zSpecifierSet.filter�s���X���*�*�K�
�;�;����
P���;�;�x�T�+�=N�;�O��
P���>�!�
24�H�:<�� �	
*��!0��!6��"�/�/��#�)�0�0��6��O�O�D�)�	
*�� 1�k�6I��-�.�.���>�!rr�)NNr)rrrrr:rr=r]r>r.r?rrr%r;r(rrr<r,rrrBrr�r�r4rrr7rrrr�r��su���CG�!(��!(�19�$��!(�	
�!(�F�7�X�d�^�7��7� ���"��"�$�"��"�5�#�5�*=��=�!�#�!��U�>�3�#6�7��N��@+�F�+�t�+�4 �� �!�(�9�-�!�#��#�T�#�0'+�$(�	7S��7S��d�^�7S��D�>�	7S�

�7S�tUY�M"� �!3�4�M"�CK�D�>�M"�	�$�	%�M"rr�)#rr8r�r��typingrrrrrrr	r
r�utilsr
rrr:r�rr=r�rrr�ABCMetar!rBr�r�r�r�r�r�rrr�<module>rs�����	�
�
�
�(������%���1��I���W�c�N�D�0�1���_����	�z�	�4�c�k�k�4�nU�
�U�p��
�
�<�=�
��C��D��I���C��D��U�t�C�y�U��c��U�u�T�#�Y��S�	�=Q�7R�U�$G"�=�G"r
¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!