[HotFix] Index Router Docstrings & sp500_multiples() Cleanup (#6063)

* sp500 multiples cleanup

* remove dict from standard model

* static pacakge

* pylint
This commit is contained in:
Danglewood
2024-02-09 12:13:59 -08:00
committed by GitHub
parent 3fae9c20b2
commit bc24709cba
8 changed files with 158 additions and 102 deletions

View File

@@ -28,7 +28,7 @@ class ROUTER_index(Container):
def available(
self, provider: Optional[Literal["fmp", "yfinance"]] = None, **kwargs
) -> OBBject:
"""Available Indices. Available indices for a given provider.
"""All indices available from a given provider.
Parameters
----------
@@ -69,7 +69,7 @@ class ROUTER_index(Container):
Example
-------
>>> from openbb import obb
>>> obb.index.available()
>>> obb.index.available(provider="yfinance").to_df()
""" # noqa: E501
return self._run(
@@ -93,7 +93,7 @@ class ROUTER_index(Container):
provider: Optional[Literal["fmp"]] = None,
**kwargs
) -> OBBject:
"""Index Constituents. Constituents of an index.
"""Index Constituents.
Parameters
----------
@@ -140,7 +140,9 @@ class ROUTER_index(Container):
Example
-------
>>> from openbb import obb
>>> obb.index.constituents(index="^IBEX")
>>> obb.index.constituents("dowjones", provider="fmp").to_df()
>>> #### Providers other than FMP will use the ticker symbol. ####
>>> obb.index.constituents("BEP50P", provider="cboe").to_df()
""" # noqa: E501
return self._run(