mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-12-01 05:33:37 +00:00
@@ -27,9 +27,9 @@ class Preferences(BaseModel):
|
||||
field_order: bool = (
|
||||
False # Whether to display the field order by which the data was defined
|
||||
)
|
||||
output_type: Literal[
|
||||
"OBBject", "dataframe", "polars", "numpy", "dict", "chart"
|
||||
] = Field(default="OBBject", description="Python default output type.")
|
||||
output_type: Literal["OBBject", "dataframe", "polars", "numpy", "dict", "chart"] = (
|
||||
Field(default="OBBject", description="Python default output type.")
|
||||
)
|
||||
|
||||
model_config = ConfigDict(validate_assignment=True)
|
||||
|
||||
|
||||
@@ -284,9 +284,9 @@ class Router:
|
||||
if deprecation_message:
|
||||
kwargs["summary"] = deprecation_message
|
||||
else:
|
||||
kwargs[
|
||||
"summary"
|
||||
] = "This functionality will be deprecated in the future releases."
|
||||
kwargs["summary"] = (
|
||||
"This functionality will be deprecated in the future releases."
|
||||
)
|
||||
|
||||
api_router.add_api_route(**kwargs)
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ class EUYieldCurveQueryParams(QueryParams):
|
||||
date: Optional[dateType] = Field(
|
||||
default=None, description=QUERY_DESCRIPTIONS.get("date", "")
|
||||
)
|
||||
yield_curve_type: Literal[
|
||||
"spot_rate", "instantaneous_forward", "par_yield"
|
||||
] = Field(
|
||||
default="spot_rate",
|
||||
description="The yield curve type.",
|
||||
yield_curve_type: Literal["spot_rate", "instantaneous_forward", "par_yield"] = (
|
||||
Field(
|
||||
default="spot_rate",
|
||||
description="The yield curve type.",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user