AsdfVersion¶
- class asdf.versioning.AsdfVersion(version)[source]¶
Bases:
AsdfVersionMixin
,Version
This class adds features to the existing
Version
class from thesemantic_version
module. Namely, it allowsVersion
objects to be constructed from tuples and lists as well as strings, and it allowsVersion
objects to be compared with tuples, lists, and strings, instead of just otherVersion
objects.If any of these features are added to the
Version
class itself (as requested in https://github.com/rbarrois/python-semanticversion/issues/52), then this class will become obsolete.