你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Add some type hints
这个提交包含在:
@@ -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:
|
||||||
|
在新工单中引用
屏蔽一个用户