diff --git a/src/tirith/utils.py b/src/tirith/utils.py index de83bf1..6c3eb83 100644 --- a/src/tirith/utils.py +++ b/src/tirith/utils.py @@ -5,7 +5,7 @@ def sort_collections(inputs): try: - if isinstance(inputs, str) or isinstance(inputs, float) or isinstance(inputs, int) or isinstance(inputs, bool): + if isinstance(inputs, (str, float, int, bool)): return inputs elif isinstance(inputs, list): if len(inputs) == 0: