Skip to content

Commit c5d300c

Browse files
fcatalan92comrademarvin
authored andcommitted
[PWGHF] Fix cast to list in analysis utils (AliceO2Group#15028)
1 parent ad2a9c4 commit c5d300c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGHF/D2H/Macros/hf_analysis_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def make_list(object) -> list:
1313
"""
1414
Returns the object as a list if it is not a list already.
1515
"""
16-
return object if isinstance(object, list) else list(object)
16+
return object if isinstance(object, list) else [object]
1717

1818

1919
# pylint: disable=too-many-arguments

0 commit comments

Comments
 (0)