Skip to content

Question: Why there is using a specific model with an abstract repository but not some abstract or base model? #57

@svnikolaev

Description

@svnikolaev

Hello,
Can you tell me please why the specific model model.Product used here with the abstract repository AbstractRepository but not some abstract or base model?

code/src/allocation/adapters/repository.py:

def get(self, sku) -> model.Product:

def _add(self, product: model.Product):

def _get(self, sku) -> model.Product:

def _get_by_batchref(self, batchref) -> model.Product:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions