From c25b4a0a8c55f3085fd2624729c9e67e0eadde97 Mon Sep 17 00:00:00 2001 From: arvidn Date: Mon, 28 Nov 2022 15:15:37 +0100 Subject: [PATCH] fix type stubs for Spend --- wheel/chia_rs.pyi | 5 +++-- wheel/generate_type_stubs.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wheel/chia_rs.pyi b/wheel/chia_rs.pyi index 40db287f5..5c6285201 100644 --- a/wheel/chia_rs.pyi +++ b/wheel/chia_rs.pyi @@ -18,6 +18,7 @@ COND_ARGS_NIL: int = ... NO_UNKNOWN_CONDS: int = ... STRICT_ARGS_COUNT: int = ... MEMPOOL_MODE: int = ... +ELIGIBLE_FOR_DEDUP: int = ... NO_NEG_DIV: int = ... NO_UNKNOWN_OPS: int = ... @@ -41,7 +42,7 @@ class Spend: seconds_relative: int create_coin: List[Tuple[bytes, int, Optional[bytes]]] agg_sig_me: List[Tuple[bytes, bytes]] - eligible_for_dedup: bool + flags: int def __init__( self, coin_id: bytes, @@ -50,7 +51,7 @@ class Spend: seconds_relative: int, create_coin: Sequence[Tuple[bytes, int, Optional[bytes]]], agg_sig_me: Sequence[Tuple[bytes, bytes]], - eligible_for_dedup: bool + flags: int ) -> None: ... def __hash__(self) -> int: ... def __str__(self) -> str: ... diff --git a/wheel/generate_type_stubs.py b/wheel/generate_type_stubs.py index de565a72c..8899fc709 100644 --- a/wheel/generate_type_stubs.py +++ b/wheel/generate_type_stubs.py @@ -137,6 +137,7 @@ def run_generator( NO_UNKNOWN_CONDS: int = ... STRICT_ARGS_COUNT: int = ... MEMPOOL_MODE: int = ... +ELIGIBLE_FOR_DEDUP: int = ... NO_NEG_DIV: int = ... NO_UNKNOWN_OPS: int = ... @@ -163,7 +164,7 @@ def get_puzzle_and_solution_for_coin(program: bytes, args: bytes, max_cost: int, "seconds_relative: int", "create_coin: List[Tuple[bytes, int, Optional[bytes]]]", "agg_sig_me: List[Tuple[bytes, bytes]]", - "eligible_for_dedup: bool", + "flags: int", ], )