Added type guard in inspect.py

This commit is contained in:
SjjThaler 2025-07-10 13:10:27 +02:00
parent 81109a0f72
commit 26782139af
No known key found for this signature in database
GPG key ID: AF68C81C47D33D3C

View file

@ -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
]
)