better annotation
This commit is contained in:
parent
1f633f3125
commit
0ddf7596e0
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user