diff --git a/tools/tools.py b/tools/tools.py index e235655..824c1a1 100644 --- a/tools/tools.py +++ b/tools/tools.py @@ -3,7 +3,7 @@ import inspect import os.path import sys from functools import wraps -from typing import Any +from typing import Any, Union def get_script_dir(follow_symlinks: bool = True) -> str: @@ -27,7 +27,7 @@ def compare(a: Any, b: Any) -> int: return bool(a > b) - bool(a < b) -def minmax(*arr: tuple) -> (Any, Any): +def minmax(*arr: Any) -> (Any, Any): """return the min and max value of an array (or arbitrary amount of arguments)""" if len(arr) == 1: if isinstance(arr[0], list):