From 7889b2f1db0ae525b0b3e02ec0e6149cd0f374c0 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 19 Aug 2023 13:49:31 +0200 Subject: [PATCH] Updated `generate_missing_docs` to use the new manifest API. --- generate_missing_docs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generate_missing_docs.py b/generate_missing_docs.py index d34eec7729..3d9f828510 100644 --- a/generate_missing_docs.py +++ b/generate_missing_docs.py @@ -4,7 +4,7 @@ from typing import Iterable, Optional from platypush.backend import Backend from platypush.context import get_plugin from platypush.plugins import Plugin -from platypush.utils.manifest import get_manifests +from platypush.utils.manifest import Manifests def _get_inspect_plugin(): @@ -14,11 +14,11 @@ def _get_inspect_plugin(): def get_all_plugins(): - return sorted([mf.component_name for mf in get_manifests(Plugin)]) + return sorted([mf.component_name for mf in Manifests.by_base_class(Plugin)]) def get_all_backends(): - return sorted([mf.component_name for mf in get_manifests(Backend)]) + return sorted([mf.component_name for mf in Manifests.by_base_class(Backend)]) def get_all_events():