Skip to content

Commit

Permalink
fix lint with longer argument name
Browse files Browse the repository at this point in the history
Signed-off-by: Zoltan Beck <[email protected]>
  • Loading branch information
Zoltan Beck committed Dec 6, 2024
1 parent 4af1e69 commit 2dbc7b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rosidl_runtime_py/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ def _convert_value(
value = '<string length: <{0}>>'.format(len(value))
elif truncate_length is not None and len(value) > truncate_length:
value = value[:truncate_length] + '...'
elif isinstance(value, (array.array, numpy.ndarray)) and not no_arr and truncate_length is None:
elif (
isinstance(value, (array.array, numpy.ndarray))
and not no_arr
and truncate_length is None
):
value = value.tolist()
elif isinstance(value, (list, tuple, array.array, numpy.ndarray)):
# Since arrays and ndarrays can't contain mixed types convert to list
Expand Down

0 comments on commit 2dbc7b1

Please sign in to comment.