Fix compatibility with recent Sphinx versions

Change-Id: Ib8bdcb82c595e4f19df224834fe102425cb0f271
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2023-09-05 11:29:44 +01:00
parent 2e3b14a46c
commit 16eeb35127

View File

@ -374,7 +374,7 @@ class FunctionDirective(PyMethod):
objtype = 'function'
def get_signature_prefix(self, sig):
return 'function '
return []
def document_function(funcdef, docstrings=None, protocols=['restjson']):