From 054c1da399b5f4c4a0e8436f4009ba517bfea2bd Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Mon, 31 Jul 2023 20:04:33 +0100 Subject: [PATCH] mypy chart style --- .../extensions/charting/openbb_charting/core/chart_style.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_sdk/extensions/charting/openbb_charting/core/chart_style.py b/openbb_sdk/extensions/charting/openbb_charting/core/chart_style.py index 31da7b825e4..eb52de74e08 100644 --- a/openbb_sdk/extensions/charting/openbb_charting/core/chart_style.py +++ b/openbb_sdk/extensions/charting/openbb_charting/core/chart_style.py @@ -30,7 +30,7 @@ class ChartStyle: """ STYLES_REPO = Path(__file__).parent.parent / "styles" - user_styles_directory = STYLES_REPO + user_styles_directory: Path = STYLES_REPO plt_styles_available: Dict[str, Path] = {} plt_style: str = "dark" @@ -58,7 +58,7 @@ class ChartStyle: def __init__( self, plt_style: Optional[str] = "", - user_styles_directory: Optional[Union[str, Path]] = None, + user_styles_directory: Optional[Path] = None, ): """Initialize the class.