Skip base Response type

This commit is contained in:
Fabio Manganiello 2020-03-05 23:19:26 +01:00
parent 27f847eac6
commit fc949ed9f1

View file

@ -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: