# -*- coding: utf-8 -*-"""Version Info==================.. module:: pcapkit.corekit.version:mod:`pcapkit.corekit.version` contains :obj:`tuple`like class :class:`~pcapkit.corekit.version.VersionInfo`,which is originally designed alike :class:`sys.version_info`."""importcollections__all__=['VersionInfo']
[docs]classVersionInfo(collections.namedtuple('VersionInfo',['major','minor'])):"""VersionInfo is alike :class:`sys.version_info`."""__slots__=()#: Major version.major:int#: Minor version.minor:int@propertydefversion(self)->'str':"""Return version string."""returnf'{self.major}.{self.minor}'def__str__(self)->'str':returnf'{self.major}.{self.minor}'