From ea3b49a17f2db8712b51967e06295cd6c179e5de Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 15 Nov 2021 01:05:53 +0100 Subject: [PATCH] Use inherited-members: true in autodoc_default_options to ensure documentation of inherited actions --- docs/source/conf.py | 4 ++++ platypush/message/__init__.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 20a3965e0..74590b528 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -195,6 +195,10 @@ intersphinx_mapping = {'https://docs.python.org/': None} # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = True +autodoc_default_options = { + 'inherited-members': True, +} + autodoc_mock_imports = ['googlesamples.assistant.grpc.audio_helpers', 'google.assistant.embedded', 'google.assistant.library', diff --git a/platypush/message/__init__.py b/platypush/message/__init__.py index 5ae71077d..c79bee4b1 100644 --- a/platypush/message/__init__.py +++ b/platypush/message/__init__.py @@ -20,7 +20,9 @@ class JSONAble(ABC): class Message(object): - """ Message generic class """ + """ + Message generic class + """ class Encoder(json.JSONEncoder): @staticmethod