flaskdocext.py
This file
Path
docs/flaskdocext.py
16 lines · 345 bytes · Python
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 22af78a point at it.
Removed outdated sentence in the testing docsArmin Ronacherbefore adoption22af78a
lines 1–16why, one step back1import re2import inspect345_internal_mark_re = re.compile(r'^\s*:internal:\s*$(?m)')678def skip_member(app, what, name, obj, skip, options):9 docstring = inspect.getdoc(obj)10 if skip:11 return True12 return _internal_mark_re.search(docstring or '') is not None131415def setup(app):16 app.connect('autodoc-skip-member', skip_member)