mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 15:32:04 +00:00
Fix build failing for router-only extensions with no standard models (#6324)
This commit is contained in:
committed by
GitHub
parent
3d2132569d
commit
666db0b321
@@ -1154,7 +1154,7 @@ class DocstringGenerator:
|
||||
results_type = (
|
||||
cls._get_repr(
|
||||
cls._get_generic_types(
|
||||
annotation.model_fields["results"].annotation, # type: ignore[union-attr]
|
||||
annotation.model_fields["results"].annotation, # type: ignore[arg-type]
|
||||
[],
|
||||
),
|
||||
model_name,
|
||||
@@ -1673,10 +1673,10 @@ class ReferenceGenerator:
|
||||
reference[path]["description"] = getattr(
|
||||
route, "description", "No description available."
|
||||
)
|
||||
|
||||
# TODO: The reference is not getting populated when a command does not use a standard model
|
||||
# Access model map from the ProviderInterface
|
||||
model_map = cls.pi.map[
|
||||
standard_model
|
||||
] # pylint: disable=protected-access
|
||||
model_map = cls.pi.map.get(standard_model, {})
|
||||
|
||||
for provider in model_map:
|
||||
if provider == "openbb":
|
||||
|
||||
Reference in New Issue
Block a user