Skip to content

Commit

Permalink
add extra dataclass check
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Sep 10, 2022
1 parent 0ed776c commit 368182d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import dataclasses
from typing import Type

from datahub.ingestion.api.registry import PluginRegistry
from datahub.ingestion.api.sink import Sink


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()

Expand Down

0 comments on commit 368182d

Please sign in to comment.