Skip to content

Commit 3aeeed0

Browse files
author
Zoltan Beck
committed
fix lint with longer argument name
1 parent 13e4052 commit 3aeeed0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rosidl_runtime_py/convert.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,11 @@ def _convert_value(
211211
value = '<string length: <{0}>>'.format(len(value))
212212
elif truncate_length is not None and len(value) > truncate_length:
213213
value = value[:truncate_length] + '...'
214-
elif isinstance(value, (array.array, numpy.ndarray)) and not no_arr and truncate_length is None:
214+
elif (
215+
isinstance(value, (array.array, numpy.ndarray))
216+
and not no_arr
217+
and truncate_length is None
218+
):
215219
value = value.tolist()
216220
elif isinstance(value, (list, tuple, array.array, numpy.ndarray)):
217221
# Since arrays and ndarrays can't contain mixed types convert to list

0 commit comments

Comments
 (0)