Co-Authored-By: Quentin Torroba <quentin.torroba@mistral.ai> Co-Authored-By: Laure Hugo <laure.hugo@mistral.ai> Co-Authored-By: Benjamin Trom <benjamin.trom@mistral.ai> Co-Authored-By: Mathias Gesbert <mathias.gesbert@ext.mistral.ai> Co-Authored-By: Michel Thomazo <michel.thomazo@mistral.ai> Co-Authored-By: Clément Drouin <clement.drouin@mistral.ai> Co-Authored-By: Vincent Guilloux <vincent.guilloux@mistral.ai> Co-Authored-By: Valentin Berard <val@mistral.ai> Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
20 lines
511 B
Python
20 lines
511 B
Python
from __future__ import annotations
|
|
|
|
from collections.abc import Awaitable, Callable, Iterable
|
|
from pathlib import PurePath
|
|
from typing import Protocol
|
|
|
|
from textual.app import App
|
|
from textual.pilot import Pilot
|
|
|
|
|
|
class SnapCompare(Protocol):
|
|
def __call__(
|
|
self,
|
|
app: str | PurePath | App,
|
|
/,
|
|
*,
|
|
press: Iterable[str] = ...,
|
|
terminal_size: tuple[int, int] = ...,
|
|
run_before: (Callable[[Pilot], Awaitable[None] | None] | None) = ...,
|
|
) -> bool: ...
|