Fix compatibility with recent Sphinx versions
Change-Id: Ib8bdcb82c595e4f19df224834fe102425cb0f271 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
2e3b14a46c
commit
16eeb35127
@ -374,7 +374,7 @@ class FunctionDirective(PyMethod):
|
|||||||
objtype = 'function'
|
objtype = 'function'
|
||||||
|
|
||||||
def get_signature_prefix(self, sig):
|
def get_signature_prefix(self, sig):
|
||||||
return 'function '
|
return []
|
||||||
|
|
||||||
|
|
||||||
def document_function(funcdef, docstrings=None, protocols=['restjson']):
|
def document_function(funcdef, docstrings=None, protocols=['restjson']):
|
||||||
|
Loading…
Reference in New Issue
Block a user