From 5b92eae08f2c24afbe9c51e34303476356ecb20b Mon Sep 17 00:00:00 2001 From: Potuz Date: Mon, 31 Oct 2022 17:18:06 -0300 Subject: [PATCH] type annotation --- specs/capella/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/capella/beacon-chain.md b/specs/capella/beacon-chain.md index e08813c22..db5b49dfe 100644 --- a/specs/capella/beacon-chain.md +++ b/specs/capella/beacon-chain.md @@ -287,7 +287,7 @@ def get_expected_withdrawals(state: BeaconState) -> Sequence[Withdrawal]: epoch = get_current_epoch(state) withdrawal_index = state.next_withdrawal_index index = ValidatorIndex((state.last_withdrawal_validator_index + 1) % len(state.validators)) - ret: Sequence[Withdrawal] = [] + ret: List[Withdrawal] = [] probed = 0 while (len(ret) < MAX_WITHDRAWALS_PER_PAYLOAD) and (probed < len(state.validators)): val = state.validators[index]