mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Further reduce problematic default args
This commit is contained in:
@@ -237,8 +237,10 @@ class HyperoptTools:
|
|||||||
result_dict.update(all_space_params)
|
result_dict.update(all_space_params)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _params_pretty_print(params, space: str, header: str, non_optimized={}) -> None:
|
def _params_pretty_print(
|
||||||
if space in params or space in non_optimized:
|
params, space: str, header: str, non_optimized: Optional[Dict] = None) -> None:
|
||||||
|
|
||||||
|
if space in params or (non_optimized and space in non_optimized):
|
||||||
space_params = HyperoptTools._space_params(params, space, 5)
|
space_params = HyperoptTools._space_params(params, space, 5)
|
||||||
no_params = HyperoptTools._space_params(non_optimized, space, 5)
|
no_params = HyperoptTools._space_params(non_optimized, space, 5)
|
||||||
appendix = ''
|
appendix = ''
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ def text_table_add_metrics(strat_results: Dict) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def show_backtest_result(strategy: str, results: Dict[str, Any], stake_currency: str,
|
def show_backtest_result(strategy: str, results: Dict[str, Any], stake_currency: str,
|
||||||
backtest_breakdown=[]):
|
backtest_breakdown: List[str]):
|
||||||
"""
|
"""
|
||||||
Print results for one strategy
|
Print results for one strategy
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ class WebSocketChannel:
|
|||||||
"""
|
"""
|
||||||
return self._closed.is_set()
|
return self._closed.is_set()
|
||||||
|
|
||||||
def set_subscriptions(self, subscriptions: List[str] = []) -> None:
|
def set_subscriptions(self, subscriptions: List[str]) -> None:
|
||||||
"""
|
"""
|
||||||
Set which subscriptions this channel is subscribed to
|
Set which subscriptions this channel is subscribed to
|
||||||
|
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ class RPC:
|
|||||||
}
|
}
|
||||||
return val
|
return val
|
||||||
|
|
||||||
def _rpc_trade_status(self, trade_ids: List[int] = []) -> List[Dict[str, Any]]:
|
def _rpc_trade_status(self, trade_ids: Optional[List[int]] = None) -> List[Dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
Below follows the RPC backend it is prefixed with rpc_ to raise awareness that it is
|
Below follows the RPC backend it is prefixed with rpc_ to raise awareness that it is
|
||||||
a remotely exposed function
|
a remotely exposed function
|
||||||
|
|||||||
Reference in New Issue
Block a user