示例#1
0
 def before_content(self):
     dstring = prepare_docstring(self.object.__doc__ or '')
     # overwrite content of directive
     self.content = ViewList(dstring)
     PyFunction.before_content(self)
示例#2
0
 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)
示例#3
0
 def run(self):
     # a decorator function is a function after all
     self.name = 'py:function'
     return PyFunction.run(self)
示例#4
0
 def run(self):
     self.name = 'py:function'
     return PyFunction.run(self)
示例#5
0
 def run(self):
     self.name = "py:function"
     return PyFunction.run(self)