File: signature_change.py

package info (click to toggle)
python-pyinstrument 5.1.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,672 kB
  • sloc: python: 6,907; ansic: 897; makefile: 46; sh: 26; javascript: 18
file content (8 lines) | stat: -rw-r--r-- 252 bytes parent folder | download
1
2
3
4
5
6
7
8
def process_sig(app, what, name, obj, options, signature, return_annotation):
    if "HTMLRenderer" in name:
        signature = "()"
    return (signature, return_annotation)


def setup(app):
    app.connect("autodoc-process-signature", process_sig)