From e6e08f12a24fda9f34ea64f6b5bbe9abb4ec396b Mon Sep 17 00:00:00 2001 From: KAAANG <79990647+SAKURA-CAT@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:10:32 +0800 Subject: [PATCH] delete:params --- pyproject.toml | 2 +- swankit/callback/__init__.py | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8ad2ee3..d5f0c85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = "hatchling.build" [project] name = "swankit" -version = "0.1.1b2" +version = "0.1.1b3" dynamic = ["readme"] description = "Base toolkit for SwanLab" license = "Apache-2.0" diff --git a/swankit/callback/__init__.py b/swankit/callback/__init__.py index b6f0f8a..ccc7cef 100644 --- a/swankit/callback/__init__.py +++ b/swankit/callback/__init__.py @@ -8,7 +8,6 @@ 回调类,规定回调函数的接口规范。 """ -from typing import Callable from abc import ABC, abstractmethod from .models import * from swankit.core import SwanLabSharedSettings @@ -42,19 +41,14 @@ def before_init_experiment( run_id: str, exp_name: str, description: str, - num: int, - suffix: str, - setter: Callable[[str, str, str, str], None], + num: int ): """ 在初始化实验之前调用,此时SwanLabRun已经初始化完毕 - FIXME setter函数实际上并不应该被传递,现在是因为存在实验名称不能重复的历史遗留问题 :param run_id: str, SwanLabRun的运行id :param exp_name: str, 实验名称 :param description: str, 实验描述 :param num: int, 历史实验数量 - :param suffix: str, 实验后缀 - :param setter: Callable[[str, str, str, str], None], 设置实验信息的函数,在这里设置实验信息 """ pass