mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 05:03:54 +00:00
clean credentials.py
This commit is contained in:
@@ -3,13 +3,15 @@ from pydantic import create_model
|
||||
from openbb_core.app.provider_interface import get_provider_interface
|
||||
|
||||
|
||||
# Here we create the BaseModel from the provider credentials.
|
||||
# Here we create the BaseModel from the provider required credentials.
|
||||
# This means that if a new provider extension is installed, the required
|
||||
# credentials will be automatically added to the Credentials model.
|
||||
|
||||
|
||||
class Config:
|
||||
validate_assignment = True
|
||||
|
||||
|
||||
required_credentials = get_provider_interface().credentials
|
||||
|
||||
Credentials = create_model( # type: ignore
|
||||
|
||||
Reference in New Issue
Block a user