From 615f14d2acabdbfac2e04cfd36549269fc3e434d Mon Sep 17 00:00:00 2001 From: Gyubong Date: Fri, 5 Jan 2024 12:20:48 +0900 Subject: [PATCH] [python] Add missing type --- binding/python/raftify.pyi | 1 + binding/python/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/binding/python/raftify.pyi b/binding/python/raftify.pyi index 5a5fddd7..68dbebdc 100644 --- a/binding/python/raftify.pyi +++ b/binding/python/raftify.pyi @@ -112,6 +112,7 @@ class Peers: """ """ def __init__(self, peers: dict) -> None: ... + def to_dict(self) -> dict[int, str]: ... def items(self) -> list[tuple[int, str]]: ... def get(self, node_id: int) -> str: ... def add_peer(self, node_id: int, addr: str) -> None: ... diff --git a/binding/python/src/lib.rs b/binding/python/src/lib.rs index 88c12f7c..0d01161e 100644 --- a/binding/python/src/lib.rs +++ b/binding/python/src/lib.rs @@ -13,6 +13,7 @@ fn raftify(py: Python, m: &PyModule) -> PyResult<()> { m.add_class::()?; m.add_class::()?; m.add_class::()?; + m.add_class::()?; m.add_class::()?; m.add_class::()?;