From 555dae0bb7ef75a2348c079dc702173f37394d54 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Wed, 8 Feb 2023 12:14:02 +0000 Subject: [PATCH] missing return doc --- openbb_terminal/account/account_model.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/openbb_terminal/account/account_model.py b/openbb_terminal/account/account_model.py index 816a7812c04..c913c95258a 100644 --- a/openbb_terminal/account/account_model.py +++ b/openbb_terminal/account/account_model.py @@ -1,5 +1,5 @@ from pathlib import Path -from typing import Any, Dict +from typing import Any, Dict, Tuple from openbb_terminal import ( config_plot as cfg_plot, @@ -21,8 +21,8 @@ def get_diff(configs: dict) -> dict: Returns ------- - bool - True if there is a diff. + dict + The diff. """ SETTINGS = "features_settings" KEYS = "features_keys" @@ -111,7 +111,7 @@ def get_diff_keys(keys: dict) -> dict: return diff -def get_var_diff(obj, name, value): +def get_var_diff(obj, name, value) -> Tuple[Any, Any]: """Set attribute in object. Parameters @@ -122,6 +122,11 @@ def get_var_diff(obj, name, value): The attribute name. value : str The attribute value. + + Returns + ------- + Tuple[Any, Any] + The old and new values. """ current_value = getattr(obj, name)