Fix ruff error1 (#81)

* fix_ruff_error1

* fix_ruff_error

* fix ruff error

* fix ruff error

* pass model.py

* rename exception class

* rename exception class

* rename func name generate_feedback

* remove prepare args

* optimize code

* optimize code

* fix code error
This commit is contained in:
Linlang
2024-07-18 22:36:04 +08:00
committed by GitHub
parent 74bc047615
commit ae2aa6e9b4
20 changed files with 121 additions and 94 deletions
+8 -3
View File
@@ -1,8 +1,12 @@
from __future__ import annotations
from abc import ABC, abstractmethod
from typing import Generic, List
from typing import TYPE_CHECKING, Generic
from rdagent.core.experiment import ASpecificExp
from rdagent.core.scenario import Scenario
if TYPE_CHECKING:
from rdagent.core.scenario import Scenario
class Developer(ABC, Generic[ASpecificExp]):
@@ -18,4 +22,5 @@ class Developer(ABC, Generic[ASpecificExp]):
due to it affects the learning process.
"""
raise NotImplementedError("generate method is not implemented.")
error_message = "generate method is not implemented."
raise NotImplementedError(error_message)