Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix type stubs for Spend #92

Merged
merged 1 commit into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions wheel/chia_rs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ...
Expand All @@ -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,
Expand All @@ -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: ...
Expand Down
3 changes: 2 additions & 1 deletion wheel/generate_type_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ...
Expand All @@ -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",
],
)

Expand Down