Skip to content

CommandResult

Base classes

Name Children Inherits
Protocol
typing
Base class for protocol classes.

⋔ Inheritance diagram

graph TD
  273658330["_runner.CommandResult"]
  1073422405["typing.Protocol"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  1073422405 --> 273658330
  3481597255 --> 1073422405
  2751680898 --> 3481597255

🛈 DocStrings

Bases: Protocol

Protocol for command execution results.

Source code in src/anyenv/lsp_servers/_runner.py
class CommandResult(Protocol):
    """Protocol for command execution results."""

    @property
    def stdout(self) -> str | None: ...

    @property
    def stderr(self) -> str | None: ...

    @property
    def exit_code(self) -> int | None: ...

    @property
    def duration(self) -> float: ...

:fa-brands-github: Show source on GitHub