from __future__ import annotations

from xdatawork.connect.connectlike import ConnectLike
from xdatawork.connect.connectreflike import ConnectRefLike
from xdatawork.interface.base.interface import BaseInterface
from xdatawork.interface.kind.interface import InterfaceKind
from xdatawork.interface.kind.partition import PartitionKind


class NonPartitioned(BaseInterface):
    def __init__(
        self,
        ref: ConnectRefLike,
        connect: ConnectLike | None = None,
        parent: NonPartitioned | None = None,
    ) -> None:
        super().__init__(
            ref=ref,
            connect=connect,
            parent=parent,
            kind=InterfaceKind.NONPARTITIONED,
            partitionkind=PartitionKind.NONPARTITIONED,
        )
