fix cli command type checker (#1114)

This commit is contained in:
XianBW
2025-07-23 19:43:25 +08:00
committed by GitHub
parent 0c3d0cd327
commit bbb008c95e
4 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ from rdagent.log.mle_summary import grade_summary as grade_summary
app = typer.Typer()
def ui(port=19899, log_dir="", debug=False, data_science=False):
def ui(port=19899, log_dir="", debug: bool = False, data_science: bool = False):
"""
start web app to show the log traces.
"""
@@ -137,7 +137,7 @@ class FactorReportLoop(FactorRDLoop, metaclass=LoopMeta):
return exp
def main(report_folder=None, path=None, all_duration=None, checkout=True):
def main(report_folder=None, path=None, all_duration: str | None = None, checkout: bool = True):
"""
Auto R&D Evolving loop for fintech factors (the factors are extracted from finance reports).
+7 -1
View File
@@ -15,7 +15,13 @@ class ModelRDLoop(RDLoop):
skip_loop_error = (ModelEmptyError,)
def main(path=None, step_n=None, loop_n=None, all_duration=None, checkout=True):
def main(
path=None,
step_n: int | None = None,
loop_n: int | None = None,
all_duration: str | None = None,
checkout: bool = True,
):
"""
Auto R&D Evolving loop for fintech models
+7 -1
View File
@@ -118,7 +118,13 @@ class QuantRDLoop(RDLoop):
self.trace.hist.append((prev_out["running"], feedback))
def main(path=None, step_n=None, loop_n=None, all_duration=None, checkout=True):
def main(
path=None,
step_n: int | None = None,
loop_n: int | None = None,
all_duration: str | None = None,
checkout: bool = True,
):
"""
Auto R&D Evolving loop for fintech factors.
You can continue running session by