Skip to content

Commit 1503dd6

Browse files
authored
fix cli command type checker (#1114)
1 parent 1f2c9b1 commit 1503dd6

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

rdagent/app/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
app = typer.Typer()
3535

3636

37-
def ui(port=19899, log_dir="", debug=False, data_science=False):
37+
def ui(port=19899, log_dir="", debug: bool = False, data_science: bool = False):
3838
"""
3939
start web app to show the log traces.
4040
"""

rdagent/app/qlib_rd_loop/factor_from_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def coding(self, prev_out: dict[str, Any]):
137137
return exp
138138

139139

140-
def main(report_folder=None, path=None, all_duration=None, checkout=True):
140+
def main(report_folder=None, path=None, all_duration: str | None = None, checkout: bool = True):
141141
"""
142142
Auto R&D Evolving loop for fintech factors (the factors are extracted from finance reports).
143143

rdagent/app/qlib_rd_loop/model.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ class ModelRDLoop(RDLoop):
1515
skip_loop_error = (ModelEmptyError,)
1616

1717

18-
def main(path=None, step_n=None, loop_n=None, all_duration=None, checkout=True):
18+
def main(
19+
path=None,
20+
step_n: int | None = None,
21+
loop_n: int | None = None,
22+
all_duration: str | None = None,
23+
checkout: bool = True,
24+
):
1925
"""
2026
Auto R&D Evolving loop for fintech models
2127

rdagent/app/qlib_rd_loop/quant.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,13 @@ def feedback(self, prev_out: dict[str, Any]):
118118
self.trace.hist.append((prev_out["running"], feedback))
119119

120120

121-
def main(path=None, step_n=None, loop_n=None, all_duration=None, checkout=True):
121+
def main(
122+
path=None,
123+
step_n: int | None = None,
124+
loop_n: int | None = None,
125+
all_duration: str | None = None,
126+
checkout: bool = True,
127+
):
122128
"""
123129
Auto R&D Evolving loop for fintech factors.
124130
You can continue running session by

0 commit comments

Comments
 (0)