

def _validate_type_version(self, version):
    if (version not in self.VALID_TEMPLATE_VERSIONS):
        ExceptionCollector.appendException(InvalidTemplateVersion(what=((version + ' in ') + self.import_def), valid_versions=', '.join(self.VALID_TEMPLATE_VERSIONS)))

dataset/ETHPy150Open openstack/tosca-parser/toscaparser/elements/tosca_type_validation.py TypeValidation._validate_type_version/original