diff --git a/metadata-ingestion/src/datahub/ingestion/sink/sink_registry.py b/metadata-ingestion/src/datahub/ingestion/sink/sink_registry.py index 97e3c9268e9bc2..3c364dc9249851 100644 --- a/metadata-ingestion/src/datahub/ingestion/sink/sink_registry.py +++ b/metadata-ingestion/src/datahub/ingestion/sink/sink_registry.py @@ -1,3 +1,4 @@ +import dataclasses from typing import Type from datahub.ingestion.api.registry import PluginRegistry @@ -5,6 +6,7 @@ def _check_sink_classes(cls: Type[Sink]) -> None: + assert not dataclasses.is_dataclass(cls), f"Sink {cls} is a dataclass" assert cls.get_config_class() assert cls.get_report_class()