mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-04 08:22:26 +00:00
add func name to error
This commit is contained in:
@@ -175,7 +175,7 @@ class ParametersBuilder:
|
||||
)
|
||||
for n, p in sig.parameters.items()
|
||||
}
|
||||
ValidationModel = create_model("ValidationModel", __config__=Config, **fields) # type: ignore
|
||||
ValidationModel = create_model(func.__name__, __config__=Config, **fields) # type: ignore
|
||||
model = ValidationModel(**kwargs)
|
||||
result = dict(model)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user