Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
attr._version_info.VersionInfo Class Reference

Public Member Functions

 __eq__ (self, other)
 
 __lt__ (self, other)
 
 __hash__ (self)
 

Static Public Attributes

 year = attrib(type=int)
 
 minor = attrib(type=int)
 
 micro = attrib(type=int)
 
 releaselevel = attrib(type=str)
 

Protected Member Functions

 _from_version_string (cls, s)
 
 _ensure_tuple (self, other)
 

Detailed Description

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

Member Function Documentation

◆ _ensure_tuple()

attr._version_info.VersionInfo._ensure_tuple (   self,
  other 
)
protected
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*.

◆ _from_version_string()

attr._version_info.VersionInfo._from_version_string (   cls,
  s 
)
protected
Parse *s* and return a _VersionInfo.

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