🐛 修复文档展示私有对象

This commit is contained in:
远野千束 2024-08-29 15:23:53 +08:00
parent a6ddc8e5bd
commit 4df41a16f5

View File

@ -57,6 +57,7 @@ def get_partial_derivative_func(func: MultiVarsFunc, var: int | tuple[int, ...],
Raises: Raises:
ValueError: 无效变量类型 ValueError: 无效变量类型
""" """
# 内部函数不注释,以防止生成文档
if isinstance(var, int): if isinstance(var, int):
def partial_derivative_func(*args: Var) -> Var: def partial_derivative_func(*args: Var) -> Var:
args_list_plus = list(args) args_list_plus = list(args)