From 2499e9721f0a53cd9da7f56873c0d2b6edf4e80d Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 14 Nov 2024 16:15:06 +0100 Subject: [PATCH] CHIA-1734 Annotate spend_bundles as a sequence in WalletSpendBundle's aggregate (#18840) Annotate spend_bundles as a sequence in WalletSpendBundle's aggregate. --- chia/wallet/wallet_spend_bundle.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chia/wallet/wallet_spend_bundle.py b/chia/wallet/wallet_spend_bundle.py index 83610f14e69d..7b7e6221eac1 100644 --- a/chia/wallet/wallet_spend_bundle.py +++ b/chia/wallet/wallet_spend_bundle.py @@ -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 @@ -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: