Source code for labapi.entry.entries.widget
"""Widget Entry Module.
This module defines the :class:`~labapi.entry.entries.widget.WidgetEntry` class,
which represents a widget entry within a LabArchives page.
"""
from __future__ import annotations
from typing import TYPE_CHECKING
from .unknown import UnimplementedEntry
if TYPE_CHECKING:
from labapi.user import User
[docs]
class WidgetEntry(UnimplementedEntry, part_type="widget entry"):
"""Backward-compatible widget entry alias using unimplemented behavior."""
[docs]
def __init__(self, eid: str, data: str, user: User):
"""Initialize a widget entry as an unimplemented entry wrapper."""
super().__init__(eid, data, user, part_type="widget entry")