From 3553686e502c4abadf39f4e3f9544dc1560ac3f5 Mon Sep 17 00:00:00 2001 From: gcarq Date: Sun, 18 Mar 2018 02:46:48 +0100 Subject: [PATCH] plot_dataframe: set missing typehints --- scripts/plot_dataframe.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/plot_dataframe.py b/scripts/plot_dataframe.py index e7a52b2bf..285ba6d97 100755 --- a/scripts/plot_dataframe.py +++ b/scripts/plot_dataframe.py @@ -13,8 +13,9 @@ Optional Cli parameters """ import sys +from argparse import Namespace -from typing import Dict +from typing import List from plotly import tools from plotly.offline import plot @@ -30,10 +31,9 @@ import freqtrade.optimize as optimize logger = Logger(name="Graph dataframe").get_logger() -def plot_analyzed_dataframe(args) -> None: +def plot_analyzed_dataframe(args: Namespace) -> None: """ Calls analyze() and plots the returned dataframe - :param pair: pair as str :return: None """ pair = args.pair.replace('-', '_') @@ -153,7 +153,7 @@ def plot_analyzed_dataframe(args) -> None: plot(fig, filename='freqtrade-plot.html') -def plot_parse_args(args): +def plot_parse_args(args: List[str]) -> Namespace: """ Parse args passed to the script :param args: Cli arguments @@ -168,7 +168,7 @@ def plot_parse_args(args): return arguments.parse_args() -def main(sysargv: Dict) -> None: +def main(sysargv: List[str]) -> None: """ This function will initiate the bot and start the trading loop. :return: None