def get_version(self):
        """ Return complete version string. """
        version = '{major}.{minor}.{patch}'.format(**self.version_info)

        if self.pre_release:
            version = '{}-{label}.{pre}'.format(version, **self.version_info)
        return version
def get_version ( self ) : version = '{major}.{minor}.{patch}' . format ( ** self . version_info ) if self . pre_release : version = '{}-{label}.{pre}' . format ( version , ** self . version_info ) return version
Return complete version string.