Skip to content

FormatResult

🛈 DocStrings

Result of a formatting operation.

Source code in src/anyenv/language_formatters/_base.py
@dataclass
class FormatResult:
    """Result of a formatting operation."""

    success: bool
    output: str
    errors: str
    formatted: bool = False
    duration: float = 0.0
    error_type: str | None = None

:fa-brands-github: Show source on GitHub