From 3da1d468d72af87f6a6a169b878c5035b9e7a431 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Thu, 18 Jun 2020 15:34:26 +0800 Subject: [PATCH] Fix linter error --- ssz/sedes/bitvector.py | 4 +++- ssz/sedes/list.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ssz/sedes/bitvector.py b/ssz/sedes/bitvector.py index 561151c..8960f8d 100644 --- a/ssz/sedes/bitvector.py +++ b/ssz/sedes/bitvector.py @@ -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 # diff --git a/ssz/sedes/list.py b/ssz/sedes/list.py index 01c3192..b3e7af7 100644 --- a/ssz/sedes/list.py +++ b/ssz/sedes/list.py @@ -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