From 0ddf7596e0a791b7816695507ace01c2cbe353d7 Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Sun, 14 Aug 2022 11:53:45 +0200 Subject: [PATCH] better annotation --- tools/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):