From 252ec2bb7325b6939d57d86318169bcdf0ff295d Mon Sep 17 00:00:00 2001 From: hjoaquim Date: Tue, 16 Jan 2024 09:39:01 +0000 Subject: [PATCH] fix on the show method --- openbb_platform/core/openbb_core/app/model/obbject.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbb_platform/core/openbb_core/app/model/obbject.py b/openbb_platform/core/openbb_core/app/model/obbject.py index 83dc144046c..db561cb84f2 100644 --- a/openbb_platform/core/openbb_core/app/model/obbject.py +++ b/openbb_platform/core/openbb_core/app/model/obbject.py @@ -263,7 +263,9 @@ class OBBject(Tagged, Generic[T]): """Display chart.""" if not self.chart or not hasattr(self.chart, "fig"): raise OpenBBError("Chart not found.") - show_function: Callable = getattr(self.chart, "show") + show_function: Callable = getattr( + self.chart.fig, "show" # pylint: disable=no-member + ) show_function() @classmethod