summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Aptekarev <aptekarev@gmail.com>2024-04-19 15:15:08 +0200
committerGitHub <noreply@github.com>2024-04-19 13:15:08 +0000
commit666db0b321d0a3be6fdc5bdfb229c789e21bd4b9 (patch)
treef5e8d3bef45819a48769cad61fe2f9a65ff7acdf
parent3d2132569d207079a02211d709306dcfbde5ac08 (diff)
Fix build failing for router-only extensions with no standard models (#6324)
-rw-r--r--openbb_platform/core/openbb_core/app/static/package_builder.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbb_platform/core/openbb_core/app/static/package_builder.py b/openbb_platform/core/openbb_core/app/static/package_builder.py
index df445cb3e50..52073a05cff 100644
--- a/openbb_platform/core/openbb_core/app/static/package_builder.py
+++ b/openbb_platform/core/openbb_core/app/static/package_builder.py
@@ -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":