move query params

This commit is contained in:
Diogo Sousa
2023-07-29 15:48:34 +01:00
parent dc9f9966ff
commit f3d20af7e8
2 changed files with 11 additions and 10 deletions

View File

@@ -10,13 +10,3 @@ class Data(BaseModel):
class Config:
extra = Extra.allow
allow_population_by_field_name = True
class QueryParams(BaseModel):
"""The OpenBB Standardized QueryParams Model that holds the query input parameters."""
class Config:
allow_population_by_field_name = True
def __repr__(self):
return f"{self.__class__.__name__}({', '.join([f'{k}={v}' for k, v in self.dict().items()])})"

View File

@@ -0,0 +1,11 @@
from pydantic import BaseModel
class QueryParams(BaseModel):
"""The OpenBB Standardized QueryParams Model that holds the query input parameters."""
class Config:
allow_population_by_field_name = True
def __repr__(self):
return f"{self.__class__.__name__}({', '.join([f'{k}={v}' for k, v in self.dict().items()])})"