From fc949ed9f1710796c38626cee77f8cc704793f57 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 5 Mar 2020 23:19:26 +0100 Subject: [PATCH] Skip base Response type --- platypush/plugins/inspect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platypush/plugins/inspect.py b/platypush/plugins/inspect.py index 2cf424cc..2805feb9 100644 --- a/platypush/plugins/inspect.py +++ b/platypush/plugins/inspect.py @@ -245,6 +245,9 @@ class InspectPlugin(Plugin): continue for _, obj in inspect.getmembers(module): + if type(obj) == Response: + continue + if inspect.isclass(obj) and issubclass(obj, Response): response = ResponseModel(response=obj, html_doc=self._html_doc) if response.package not in self._responses: