Files
OpenBB/openbb_platform/core/tests
Wei-Lun Li 7c1a850ecc fix(core): keep default_factory defaults in the generated Python signatures (#7856)
The package builder only read `field.default` when it flattened a
QueryParams model into the arguments of a generated `obb` method, so a
field declared with `default_factory` became a required argument.
`obb.technical.realized_volatility_compare(data=...)` and
`obb.quantitative.attribution/factors/risk_decomposition(...)` failed with
"Missing required argument" for `models` / `periods`, although the REST API
and the docstrings treat them as optional.

Resolve the default the same way the flattening branch for other
QueryParams annotations already did, and use that helper in all three
places.

Co-authored-by: dlee-bq <dlee@brightquery.com>
2026-11-28 23:21:56 +00:00
..
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00