mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 07:57:44 +00:00
fix cli command type checker (#1114)
This commit is contained in:
+1
-1
@@ -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).
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user