diff --git a/doc/source/conf.py b/doc/source/conf.py index 68af5afe83a63d2899992a3577d2b70f070371e1..eb006cfb1d0814988b1c6ab085fa0913bb3eacee 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -233,5 +233,12 @@ class BoundMethodDocumenter(autodoc.FunctionDocumenter): not issubclass(member.im_class, type) and member.im_class is not types.ClassType) + def format_args(self): + args = super(BoundMethodDocumenter, self).format_args() + left, sep, right = args.partition('self, ') + if left.endswith('('): + args = left + right + return args + def setup(app): app.add_autodocumenter(BoundMethodDocumenter)