"""옛 `M02_Labor_Doc.run_line` 자리(855-E 2-E4) — 로직 줄 하나 = 층 문서 셈(`M02_Labor_Copy.line`). 재료 줄 전부 직접계산(옛 날 답 = 별도계상 안 뺌) · 켜쌓기율 · 고름 = 줄 옵션 · 답 `{기준, 줄, 재료, 까닭}`. """ from __future__ import annotations from typing import Any DIRECT = {"별도계상": "직접계산"} def run_line( whole: Any, code: str, given: dict | None = None, rate: Any = None, picks: dict | None = None ) -> dict[str, Any]: from M02_MasterTemplete import M02_Labor_Copy as lc one: dict[str, Any] = {"로직": code, "입력값": dict(given or {})} one["자재표시"] = {str(n): DIRECT for n in range(64)} if rate is not None: one["켜쌓기율"] = rate if picks: one["고름"] = picks return lc.line(whole, {}, one)