From 4e4018aa12bea27773c3b7592f6cf52b8e4f8fd8 Mon Sep 17 00:00:00 2001 From: Illya Laifu Date: Thu, 2 Jan 2025 17:46:45 +0200 Subject: [PATCH] feat: add missing methods for the Operations to the interface file --- taskchampion.pyi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/taskchampion.pyi b/taskchampion.pyi index 210b60f..766cc80 100644 --- a/taskchampion.pyi +++ b/taskchampion.pyi @@ -59,7 +59,11 @@ class Operation: value: Optional[str] class Operations: - def append(op: "Operation"): ... + def append(self, op: "Operation"): ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator["Operation"]: ... + def __next__(self) -> "Operation": ... + def __getitem__(self, i: int) -> "Operation": ... class Status(Enum): Pending = 1