Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Jun 18, 2020
1 parent a5d797f commit 3da1d46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ssz/sedes/bitvector.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
class Bitvector(BitfieldCompositeSedes[BytesOrByteArray, bytes]):
def __init__(self, bit_count: int) -> None:
if bit_count < 1:
raise ValueError(f"Bitvector must have a size of 1 or greater, got {bit_count}")
raise ValueError(
f"Bitvector must have a size of 1 or greater, got {bit_count}"
)
self.bit_count = bit_count

#
Expand Down
4 changes: 3 additions & 1 deletion ssz/sedes/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ class List(
):
def __init__(self, element_sedes: TSedes, max_length: int) -> None:
if max_length < 0:
raise ValueError(f"Lists must have a maximum length of 0 or greater, got {max_length}")
raise ValueError(
f"Lists must have a maximum length of 0 or greater, got {max_length}"
)
self.element_sedes = element_sedes
self.max_length = max_length

Expand Down

0 comments on commit 3da1d46

Please sign in to comment.