def before_content(self): dstring = prepare_docstring(self.object.__doc__ or '') # overwrite content of directive self.content = ViewList(dstring) PyFunction.before_content(self)
def handle_signature(self, sig, signode): self.object = command_wrappers[sig].orig_function sig = '%s%s' % (sig, formatArgs(self.object, strip_self=True)) return PyFunction.handle_signature(self, sig, signode)
def run(self): # a decorator function is a function after all self.name = 'py:function' return PyFunction.run(self)
def run(self): self.name = 'py:function' return PyFunction.run(self)
def run(self): self.name = "py:function" return PyFunction.run(self)