Skip to content

Commit 84bf9c5

Browse files
flake8
1 parent ec95bd5 commit 84bf9c5

File tree

10 files changed

+16
-20
lines changed

10 files changed

+16
-20
lines changed

eth/beacon/aggregation.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ def verify_votes(
4343
return sigs, committee_indices
4444

4545

46-
def aggregate_votes(bitfield: Bitfield,
47-
sigs: Iterable[BLSSignature],
48-
voting_sigs: Iterable[BLSSignature],
49-
voting_committee_indices: Iterable[int]) -> Tuple[Bitfield, BLSSignatureAggregated]:
46+
def aggregate_votes(
47+
bitfield: Bitfield,
48+
sigs: Iterable[BLSSignature],
49+
voting_sigs: Iterable[BLSSignature],
50+
voting_committee_indices: Iterable[int]) -> Tuple[Bitfield, BLSSignatureAggregated]:
5051
"""
5152
Aggregate the votes.
5253
"""

eth/beacon/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
BLSPubkey,
5757
)
5858

59+
5960
def _get_element_from_recent_list(
6061
target_list: Sequence[Any],
6162
target_slot: int,

eth/beacon/types/attestations.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
from typing import (
2-
Sequence,
3-
)
4-
51
import rlp
62
from rlp.sedes import (
73
binary,

eth/beacon/types/deposit_input.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
from typing import (
2-
Sequence,
3-
)
4-
51
from eth_typing import (
62
Hash32,
73
)
@@ -21,6 +17,7 @@
2117
)
2218
from eth.beacon.constants import EMPTY_SIGNATURE
2319

20+
2421
class DepositInput(rlp.Serializable):
2522
"""
2623
Note: using RLP until we have standardized serialization format.

eth/beacon/types/exits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from typing import Sequence
21
import rlp
32
from rlp.sedes import (
43
CountableList,
@@ -14,6 +13,7 @@
1413
)
1514
from eth.beacon.constants import EMPTY_SIGNATURE
1615

16+
1717
class Exit(rlp.Serializable):
1818
"""
1919
Note: using RLP until we have standardized serialization format.

eth/beacon/types/fork_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
SlotNumber,
99
)
1010

11+
1112
class ForkData(rlp.Serializable):
1213
"""
1314
Note: using RLP until we have standardized serialization format.

eth/beacon/types/pending_attestation_records.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
)
1717

1818

19-
20-
2119
class PendingAttestationRecord(rlp.Serializable):
2220
"""
2321
Note: using RLP until we have standardized serialization format.

eth/beacon/types/proposer_slashings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from typing import Sequence
21
import rlp
32
from rlp.sedes import (
43
CountableList,
@@ -13,6 +12,7 @@
1312
)
1413
from eth.beacon.constants import EMPTY_SIGNATURE
1514

15+
1616
class ProposerSlashing(rlp.Serializable):
1717
fields = [
1818
# Proposer index

eth/beacon/types/validator_records.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
)
1818

1919

20-
2120
VALIDATOR_RECORD_ACTIVE_STATUSES = {
2221
ValidatorStatusCode.ACTIVE,
2322
ValidatorStatusCode.ACTIVE_PENDING_EXIT,

eth/beacon/typing.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
ShardNumber = NewType('ShardNumber', int) # uint64
55
BLSPubkey = NewType('BLSPubkey', int) # uint384
66
BLSPubkeyAggregated = NewType('BLSPubkeyAggregated', int) # uint384
7-
BLSSignature = NewType('BLSSignature', bytes)
8-
BLSSignatureAggregated = NewType('BLSSignatureAggregated', Tuple[int, int]) # Tuple[uint384, uint384]
7+
BLSSignature = NewType('BLSSignature', bytes)
8+
BLSSignatureAggregated = NewType(
9+
'BLSSignatureAggregated',
10+
Tuple[int, int]
11+
) # Tuple[uint384, uint384]
912
ValidatorIndex = NewType('ValidatorIndex', int) # uint24
1013
Bitfield = NewType('Bitfield', bytes) # uint64
1114

@@ -15,4 +18,4 @@
1518
Gwei = NewType('Gwei', int) # uint64
1619

1720

18-
Seconds = NewType('Seconds', int)
21+
Seconds = NewType('Seconds', int)

0 commit comments

Comments
 (0)