from typing import Protocol from app.domain.models import AttributeDefinition, AttributeStatement class Normalizer(Protocol): version: str def validate(self, definition: AttributeDefinition, statement: AttributeStatement) -> AttributeStatement: """Validate an already normalized statement. Must not parse free text.""" ...