Skip to content

ParsedScript

🛈 DocStrings

Source code in src/datacook/engine/parser.py
@dataclass(slots=True)
class ParsedScript:
    steps: list[Step] = field(default_factory=list)
    variables: dict[str, int] = field(default_factory=dict)
    """Variable name -> step index at the end of the script."""

    @property
    def records(self) -> list[OpRecord]:
        return [s.record for s in self.steps]

variables class-attribute instance-attribute

variables: dict[str, int] = field(default_factory=dict)

Variable name -> step index at the end of the script.

:fa-brands-github: Show source on GitHub