modify args typehints
This commit is contained in:
parent
33ddc540cf
commit
f6df7df9bf
@ -26,7 +26,7 @@ class Arguments(object):
|
||||
self.common_args_parser()
|
||||
self._build_subcommands()
|
||||
|
||||
def get_parsed_arg(self) -> List[str]:
|
||||
def get_parsed_arg(self) -> argparse.Namespace:
|
||||
"""
|
||||
Return the list of arguments
|
||||
:return: List[str] List of arguments
|
||||
@ -37,7 +37,7 @@ class Arguments(object):
|
||||
|
||||
return self.parsed_arg
|
||||
|
||||
def parse_args(self) -> List[str]:
|
||||
def parse_args(self) -> argparse.Namespace:
|
||||
"""
|
||||
Parses given arguments and returns an argparse Namespace instance.
|
||||
"""
|
||||
|
@ -6,7 +6,7 @@ Read the documentation to know what cli arguments you need.
|
||||
|
||||
import logging
|
||||
import sys
|
||||
from typing import Dict
|
||||
from typing import List
|
||||
|
||||
from freqtrade import (__version__)
|
||||
from freqtrade.arguments import Arguments
|
||||
@ -17,7 +17,7 @@ from freqtrade.logger import Logger
|
||||
logger = Logger(name='freqtrade').get_logger()
|
||||
|
||||
|
||||
def main(sysargv: Dict) -> None:
|
||||
def main(sysargv: List[str]) -> None:
|
||||
"""
|
||||
This function will initiate the bot and start the trading loop.
|
||||
:return: None
|
||||
|
Loading…
Reference in New Issue
Block a user