-
Notifications
You must be signed in to change notification settings - Fork 80
Conversation
🚀 Deployed on https://deploy-preview-758--etna-docs.netlify.app |
Codecov Report
@@ Coverage Diff @@
## master #758 +/- ##
===========================================
- Coverage 83.50% 50.72% -32.78%
===========================================
Files 122 122
Lines 6734 6746 +12
===========================================
- Hits 5623 3422 -2201
- Misses 1111 3324 +2213
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
@@ -19,6 +23,12 @@ def backtest( | |||
freq: str = typer.Argument(..., help="frequency of timestamp in files in pandas format"), | |||
output_path: Path = typer.Argument(..., help="where to save forecast"), | |||
exog_path: Optional[Path] = typer.Argument(default=None, help="path to csv with exog data"), | |||
known_future: Optional[List[str]] = typer.Argument( | |||
None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not default="all"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because "all" is not List. And Typer does not support Union. So I can only configure it like this "all" if not known_future else known_future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not?
It's normal workaround I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about tests?
IMPORTANT: Please do not create a Pull Request without creating an issue first.
Before submitting (must do checklist)
Type of Change
Proposed Changes
Related Issue
Closing issues