Add response-model for show_config

This commit is contained in:
Matthias
2021-01-02 15:48:33 +01:00
parent ca0bb7bbb8
commit cff50f9f66
3 changed files with 26 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ class RPC:
self._fiat_converter = CryptoToFiatConverter()
@staticmethod
def _rpc_show_config(config, botstate: State) -> Dict[str, Any]:
def _rpc_show_config(config, botstate: Union[State, str]) -> Dict[str, Any]:
"""
Return a dict of config options.
Explicitly does NOT return the full config to avoid leakage of sensitive