class BaseSpecifier: (source)
Known subclasses: setuptools._vendor.packaging.specifiers.Specifier
, setuptools._vendor.packaging.specifiers.SpecifierSet
Undocumented
Method | __eq__ |
Returns a boolean representing whether or not the two Specifier-like objects are equal. |
Method | __hash__ |
Returns a hash value for this Specifier-like object. |
Method | __str__ |
Returns the str representation of this Specifier-like object. This should be representative of the Specifier itself. |
Method | contains |
Determines if the given item is contained within this specifier. |
Method | filter |
Takes an iterable of items and filters them so that only items which are contained within this specifier are allowed in it. |
Method | prereleases |
Setter for :attr:`prereleases`. |
Property | prereleases |
Whether or not pre-releases as a whole are allowed. |
setuptools._vendor.packaging.specifiers.Specifier
, setuptools._vendor.packaging.specifiers.SpecifierSet
Returns a boolean representing whether or not the two Specifier-like objects are equal. :param other: The other object to check against.
setuptools._vendor.packaging.specifiers.Specifier
, setuptools._vendor.packaging.specifiers.SpecifierSet
Returns a hash value for this Specifier-like object.
setuptools._vendor.packaging.specifiers.Specifier
, setuptools._vendor.packaging.specifiers.SpecifierSet
Returns the str representation of this Specifier-like object. This should be representative of the Specifier itself.
def contains(self, item:
str
, prereleases: Optional[ bool]
= None) -> bool
:
(source)
¶
setuptools._vendor.packaging.specifiers.Specifier
, setuptools._vendor.packaging.specifiers.SpecifierSet
Determines if the given item is contained within this specifier.
def filter(self, iterable:
Iterable[ UnparsedVersionVar]
, prereleases: Optional[ bool]
= None) -> Iterator[ UnparsedVersionVar]
:
(source)
¶
setuptools._vendor.packaging.specifiers.Specifier
, setuptools._vendor.packaging.specifiers.SpecifierSet
Takes an iterable of items and filters them so that only items which are contained within this specifier are allowed in it.
setuptools._vendor.packaging.specifiers.Specifier
, setuptools._vendor.packaging.specifiers.SpecifierSet
Setter for :attr:`prereleases`. :param value: The value to set.
setuptools._vendor.packaging.specifiers.Specifier
, setuptools._vendor.packaging.specifiers.SpecifierSet
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.