Add types for deps
This commit is contained in:
parent
336dd1a29c
commit
3dc37dd79d
@ -1,13 +1,17 @@
|
||||
from typing import Any, Dict
|
||||
|
||||
from freqtrade.rpc.rpc import RPC
|
||||
|
||||
from .webserver import ApiServer
|
||||
|
||||
|
||||
def get_rpc():
|
||||
def get_rpc() -> RPC:
|
||||
return ApiServer._rpc
|
||||
|
||||
|
||||
def get_config():
|
||||
def get_config() -> Dict[str, Any]:
|
||||
return ApiServer._config
|
||||
|
||||
|
||||
def get_api_config():
|
||||
def get_api_config() -> Dict[str, Any]:
|
||||
return ApiServer._config['api_server']
|
||||
|
Loading…
Reference in New Issue
Block a user