File: builder.py

package info (click to toggle)
python-dogpile.cache 1.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: python: 5,462; makefile: 155; sh: 104
file content (9 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
def autodoc_skip_member(app, what, name, obj, skip, options):
    if what == "class" and skip and name in ("__init__",) and obj.__doc__:
        return False
    else:
        return skip


def setup(app):
    app.connect("autodoc-skip-member", autodoc_skip_member)