Add types for deps

This commit is contained in:
Matthias 2021-01-02 12:54:40 +01:00
parent 336dd1a29c
commit 3dc37dd79d

View File

@ -1,13 +1,17 @@
from typing import Any, Dict
from freqtrade.rpc.rpc import RPC
from .webserver import ApiServer from .webserver import ApiServer
def get_rpc(): def get_rpc() -> RPC:
return ApiServer._rpc return ApiServer._rpc
def get_config(): def get_config() -> Dict[str, Any]:
return ApiServer._config return ApiServer._config
def get_api_config(): def get_api_config() -> Dict[str, Any]:
return ApiServer._config['api_server'] return ApiServer._config['api_server']