BuyingAgent/backend/app/normalization/base.py

12 lines
351 B
Python
Raw Permalink Normal View History

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."""
...