Fix inspection.py import logic and update docs

pull/1203/head
Carlos Barbero 8 months ago
parent 120c8d7090
commit 5dea6c2600

@ -62,6 +62,11 @@ def get_all_nodes():
# Verify it belongs to this module (to avoid re-export noise)
# or at least is defined in the diagrams package
if obj.__module__.startswith("diagrams"):
# Ensure the object actually belongs to this service (or a submodule of it)
# This prevents listing imported classes from other services (e.g. Trace in operations vs devtools)
if not obj.__module__.startswith(service_name):
continue
icons[short_provider][short_service].append(name)
node_registry[name] = obj

Loading…
Cancel
Save