def get_id(self, version: int) -> str:
    if (version == 1):
        res = []
        res.append(self.trailingTypeSpec.get_id(version))
        if self.allSpecs.volatile:
            res.append('V')
        if self.allSpecs.const:
            res.append('C')
        return ''.join(res)
    res = []
    if self.allSpecs.volatile:
        res.append('V')
    if self.allSpecs.const:
        res.append('K')
    if (self.trailingTypeSpec is not None):
        res.append(self.trailingTypeSpec.get_id(version))
    return ''.join(res)
def get_id(self, version: int) -> str:
    if (version == 1):
        res = []
        res.append(self.trailingTypeSpec.get_id(version))
        if self.allSpecs.volatile:
            res.append('V')
        if self.allSpecs.const:
            res.append('C')
        return .join(res)
    res = []
    if self.allSpecs.volatile:
        res.append('V')
    if self.allSpecs.const:
        res.append('K')
    if (self.trailingTypeSpec is not None):
        res.append(self.trailingTypeSpec.get_id(version))
    return .join(res)