Source code for LOGS.Entities.DataSourceRelations

from typing import TYPE_CHECKING, Optional

from LOGS.Entity.EntityRelation import EntityRelation
from LOGS.Entity.EntityRelations import EntityRelations

if TYPE_CHECKING:
    from LOGS.Entities.Dataset import Dataset


[docs] class DataSourceRelations(EntityRelations): """Relations of a DataSource with other entities""" _datasets: Optional[EntityRelation["Dataset"]] = None @property def datasets(self) -> Optional[EntityRelation["Dataset"]]: return self._datasets @datasets.setter def datasets(self, value): from LOGS.Entities.Datasets import Datasets self._datasets = self._entityConverter(value, Datasets)