"""Views for the index Extension.""" from importlib import import_module from typing import TYPE_CHECKING, Any if TYPE_CHECKING: from openbb_charting.core.openbb_figure import ( OpenBBFigure, ) class IndexViews: """Index Views.""" @staticmethod def index_price_historical( **kwargs, ) -> tuple["OpenBBFigure", dict[str, Any]]: """Index Price Historical Chart.""" price_historical = import_module( "openbb_charting.charts.price_historical" ).price_historical return price_historical(**kwargs)