From 209d15fc506953dac975cdc06449484f6f59882d Mon Sep 17 00:00:00 2001 From: Leonid Kostrykin Date: Wed, 13 Mar 2024 10:49:33 +0000 Subject: [PATCH] Fix linting issues --- lib/galaxy/tool_util/verify/asserts/image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/tool_util/verify/asserts/image.py b/lib/galaxy/tool_util/verify/asserts/image.py index b5d14b0a4181..ec5fb01d52da 100644 --- a/lib/galaxy/tool_util/verify/asserts/image.py +++ b/lib/galaxy/tool_util/verify/asserts/image.py @@ -221,7 +221,7 @@ def cast_label(label): # Apply filtering due to `labels` (keep only those). if labels is None: - labels = list() + labels = [] if isinstance(labels, str): labels = [cast_label(label) for label in labels.split(",") if len(label) > 0] if len(labels) > 0: @@ -229,7 +229,7 @@ def cast_label(label): # Apply filtering due to `exclude_labels`. if exclude_labels is None: - exclude_labels = list() + exclude_labels = [] if isinstance(exclude_labels, str): exclude_labels = [cast_label(label) for label in exclude_labels.split(",") if len(label) > 0] present_labels = [label for label in present_labels if label not in exclude_labels]