From 0f74ab5686e4a13fa153ddfcf48f250fb8891bdc Mon Sep 17 00:00:00 2001 From: Potuz Date: Mon, 31 Oct 2022 17:00:20 -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 cadebcd18..e08813c22 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 = [] + ret: Sequence[Withdrawal] = [] probed = 0 while (len(ret) < MAX_WITHDRAWALS_PER_PAYLOAD) and (probed < len(state.validators)): val = state.validators[index]