better annotation

This commit is contained in:
Stefan Harmuth 2022-08-14 11:53:45 +02:00
parent 1f633f3125
commit 0ddf7596e0

View File

@ -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):