diff options
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/sphinx/autodoc.py')
-rw-r--r-- | venv/lib/python3.11/site-packages/faker/sphinx/autodoc.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/venv/lib/python3.11/site-packages/faker/sphinx/autodoc.py b/venv/lib/python3.11/site-packages/faker/sphinx/autodoc.py deleted file mode 100644 index 8e7154e..0000000 --- a/venv/lib/python3.11/site-packages/faker/sphinx/autodoc.py +++ /dev/null @@ -1,19 +0,0 @@ -# coding=utf-8 -from faker.sphinx.docstring import ProviderMethodDocstring -from faker.sphinx.documentor import write_provider_docs - - -def _create_source_files(app): - write_provider_docs() - - -def _process_docstring(app, what, name, obj, options, lines): - docstring = ProviderMethodDocstring(app, what, name, obj, options, lines) - if not docstring.skipped: - lines[:] = docstring.lines[:] - - -def setup(app): - app.setup_extension("sphinx.ext.autodoc") - app.connect("builder-inited", _create_source_files) - app.connect("autodoc-process-docstring", _process_docstring) |