fix on the show method

This commit is contained in:
hjoaquim
2024-01-16 09:39:01 +00:00
parent 6643d24a78
commit 252ec2bb73

View File

@@ -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