Skip to content

Commit

Permalink
CHIA-1734 Annotate spend_bundles as a sequence in WalletSpendBundle's…
Browse files Browse the repository at this point in the history
… aggregate (#18840)

Annotate spend_bundles as a sequence in WalletSpendBundle's aggregate.
  • Loading branch information
AmineKhaldi authored Nov 14, 2024
1 parent 12d1176 commit 2499e97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chia/wallet/wallet_spend_bundle.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import annotations

from typing import Sequence

from chia_rs import AugSchemeMPL, G2Element

from chia.consensus.default_constants import DEFAULT_CONSTANTS
Expand All @@ -10,7 +12,7 @@

class WalletSpendBundle(SpendBundle):
@classmethod
def aggregate(cls, spend_bundles: list[T_SpendBundle]) -> WalletSpendBundle:
def aggregate(cls, spend_bundles: Sequence[T_SpendBundle]) -> WalletSpendBundle:
coin_spends: list[CoinSpend] = []
sigs: list[G2Element] = []
for bundle in spend_bundles:
Expand Down

0 comments on commit 2499e97

Please sign in to comment.