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 28, 2024
1 parent f78b38c commit a8bfb75
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion kedro-datasets/kedro_datasets/_utils/connection_mixin.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
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: 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 a8bfb75

Please sign in to comment.