From 26782139aff20013468c1613898bba20f14be262 Mon Sep 17 00:00:00 2001 From: SjjThaler Date: Thu, 10 Jul 2025 13:10:27 +0200 Subject: [PATCH] Added type guard in inspect.py --- llama_stack/distribution/inspect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llama_stack/distribution/inspect.py b/llama_stack/distribution/inspect.py index 5822070ad..d6a598982 100644 --- a/llama_stack/distribution/inspect.py +++ b/llama_stack/distribution/inspect.py @@ -54,6 +54,7 @@ class DistributionInspectImpl(Inspect): provider_types=[], # These APIs don't have "real" providers - they're internal to the stack ) for e in endpoints + if e.methods is not None ] ) else: @@ -67,6 +68,7 @@ class DistributionInspectImpl(Inspect): provider_types=[p.provider_type for p in providers], ) for e in endpoints + if e.methods is not None ] )