Skip to content

Commit 774fab7

Browse files
committed
lints
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
1 parent a53cd6d commit 774fab7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/zkevm/test_worst_compute.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
import math
9+
from typing import Sequence, cast
910

1011
import pytest
1112

@@ -380,10 +381,12 @@ def test_worst_precompile_fixed_cost(
380381

381382
concatenated_bytes: bytes
382383
if all(isinstance(p, str) for p in parameters):
383-
concatenated_hex_string = "".join(parameters)
384+
parameters_str = cast(list[str], parameters)
385+
concatenated_hex_string = "".join(parameters_str)
384386
concatenated_bytes = bytes.fromhex(concatenated_hex_string)
385387
elif all(isinstance(p, (bytes, BytesConcatenation)) for p in parameters):
386-
concatenated_bytes = b"".join(bytes(p) for p in parameters)
388+
parameters_bytes_list = [bytes(p) for p in parameters]
389+
concatenated_bytes = b"".join(parameters_bytes_list)
387390
else:
388391
raise TypeError(
389392
"parameters must be a list of strings (hex) "

0 commit comments

Comments
 (0)