mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 05:21:48 +00:00
Merge branch 'feature/snake_case' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/snake_case
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
|
||||
|
||||
|
||||
|
||||
from openbb_core.app.static.container import Container
|
||||
|
||||
|
||||
|
||||
@@ -380,14 +380,9 @@ class CLASS_economy(Container):
|
||||
|
||||
CPI
|
||||
---
|
||||
date : Optional[date]
|
||||
The date of the data.
|
||||
realtime_start : Optional[date]
|
||||
Date the data was updated.
|
||||
realtime_end : Optional[date]
|
||||
Date the data was updated.
|
||||
value : Optional[float]
|
||||
Value of the data."""
|
||||
country_unit_freq : Optional[List[CPIData]]
|
||||
CPI data for a country, units, and frequency combination. (provider: fred)
|
||||
"""
|
||||
|
||||
inputs = filter_inputs(
|
||||
provider_choices={
|
||||
|
||||
@@ -11,12 +11,7 @@ class QueryParams(BaseModel):
|
||||
"""Pydantic Config."""
|
||||
|
||||
allow_population_by_field_name = True
|
||||
|
||||
def __init__(self, **data):
|
||||
"""Update the fields to snake case."""
|
||||
for field in self.__fields__.values():
|
||||
field.name = to_snake_case(field.name)
|
||||
super().__init__(**data)
|
||||
alias_generator = to_snake_case
|
||||
|
||||
def __repr__(self):
|
||||
"""Return the string representation of the QueryParams object."""
|
||||
|
||||
Reference in New Issue
Block a user