mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 07:14:20 +00:00
Added type guard in inspect.py
This commit is contained in:
parent
81109a0f72
commit
26782139af
1 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,7 @@ class DistributionInspectImpl(Inspect):
|
||||||
provider_types=[], # These APIs don't have "real" providers - they're internal to the stack
|
provider_types=[], # These APIs don't have "real" providers - they're internal to the stack
|
||||||
)
|
)
|
||||||
for e in endpoints
|
for e in endpoints
|
||||||
|
if e.methods is not None
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
@ -67,6 +68,7 @@ class DistributionInspectImpl(Inspect):
|
||||||
provider_types=[p.provider_type for p in providers],
|
provider_types=[p.provider_type for p in providers],
|
||||||
)
|
)
|
||||||
for e in endpoints
|
for e in endpoints
|
||||||
|
if e.methods is not None
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue