mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
Update provider_interface.py
This commit is contained in:
@@ -435,16 +435,12 @@ class ProviderInterface:
|
||||
class Config(BaseConfig):
|
||||
extra = Extra.allow
|
||||
|
||||
ReturnModel = create_model( # type: ignore
|
||||
result[model_name] = create_model( # type: ignore
|
||||
model_name,
|
||||
__config__=Config,
|
||||
**fields_dict, # type: ignore
|
||||
)
|
||||
|
||||
# TODO: If we want to support multiple return schemas, we need
|
||||
# to change this `List` to the schema type
|
||||
result[model_name] = List[ReturnModel] # type: ignore
|
||||
|
||||
return result
|
||||
|
||||
def _get_provider_literal(self, available_providers: List[str]) -> type:
|
||||
|
||||
Reference in New Issue
Block a user