Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
pip._vendor.distlib.version.Matcher Class Reference
Inheritance diagram for pip._vendor.distlib.version.Matcher:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.distlib.version.Matcher:
Collaboration graph
[legend]

Public Member Functions

 parse_requirement (self, s)
 
 __init__ (self, s)
 
 match (self, version)
 
 exact_version (self)
 
 __eq__ (self, other)
 
 __ne__ (self, other)
 
 __hash__ (self)
 
 __repr__ (self)
 
 __str__ (self)
 

Public Attributes

 name
 
 key
 

Static Public Attributes

 version_class = None
 

Protected Member Functions

 _check_compatible (self, other)
 

Protected Attributes

 _string
 
 _parts
 

Static Protected Attributes

dict _operators
 

Member Function Documentation

◆ match()

pip._vendor.distlib.version.Matcher.match (   self,
  version 
)
Check if the provided version matches the constraints.

:param version: The version to match against this instance.
:type version: String or :class:`Version` instance.

Member Data Documentation

◆ _operators

dict pip._vendor.distlib.version.Matcher._operators
staticprotected
Initial value:
= {
'<': lambda v, c, p: v < c,
'>': lambda v, c, p: v > c,
'<=': lambda v, c, p: v == c or v < c,
'>=': lambda v, c, p: v == c or v > c,
'==': lambda v, c, p: v == c,
'===': lambda v, c, p: v == c,
# by default, compatible => >=.
'~=': lambda v, c, p: v == c or v > c,
'!=': lambda v, c, p: v != c,
}

The documentation for this class was generated from the following file: