from __future__ import annotations
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
from r2x_core import PluginContext
class SiennaConfig:
def __init__(self, system_name: str | None = None, **kwargs: Any) -> None:
self.system_name = system_name
self.extra = kwargs
class SiennaParser:
def __init__(
self, config: SiennaConfig | None = None, path: str | None = None, **_: Any
) -> None:
self.config = config
self.path = path
@classmethod
def from_context(cls, ctx: PluginContext) -> SiennaParser:
return cls(config=ctx.config)
def build_system(self) -> str:
return '{"system": "sienna", "status": "ok"}'