Add some type hints

这个提交包含在:
nmannall
2024-07-18 17:05:07 +01:00
父节点 7d0321715f
当前提交 cd078dbfc4

查看文件

@@ -22,6 +22,7 @@ import logging
import re import re
import textwrap import textwrap
from shutil import get_terminal_size from shutil import get_terminal_size
from typing import Union
import numpy as np import numpy as np
from colorama import Fore, Style, init from colorama import Fore, Style, init
@@ -140,7 +141,7 @@ def logo(version):
return str return str
def round_value(value, decimalplaces=0): def round_value(value: float, decimalplaces: int = 0) -> Union[float, int]:
"""Rounding function. """Rounding function.
Args: Args: