"""Implements the Link class and the LinkContainer."""
import logging
from ..utils import Link
from ..mixins import CheckDataMixin
from .general import ObjectContainer, PassthroughContainer
log = logging.getLogger(__name__)
# -----------------------------------------------------------------------------
[docs]class LinkContainer(CheckDataMixin, PassthroughContainer):
"""A LinkContainer is a container containing a Link object.
It forwards all attribute calls to the Link object, which in turn forwards
all attribute calls to the linked object, thereby emulating the behaviour
of the linked object.
"""
DATA_EXPECTED_TYPES = (Link,)