Skip to content

Commit

Permalink
chore(datasets): define required attrs and methods
Browse files Browse the repository at this point in the history
Signed-off-by: Deepyaman Datta <[email protected]>
  • Loading branch information
deepyaman committed Nov 25, 2024
1 parent fdc27db commit d01ac44
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion kedro-datasets/kedro_datasets/_utils/connection_mixin.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
from abc import ABC, abstractmethod
from collections.abc import Hashable
from typing import Any, ClassVar


class ConnectionMixin:
class ConnectionMixin(ABC):
_CONNECTION_GROUP: ClassVar[str]
_connection_config: ClassVar[dict[str, Any]]
_connections: ClassVar[dict[Hashable, Any]] = {}

@abstractmethod
def _connect(self) -> Any:
...

@property
def _connection(self) -> Any:
def hashable(value: Any) -> Hashable:
Expand Down

0 comments on commit d01ac44

Please sign in to comment.