Coverage for src/bob/bio/base/extractor/__init__.py: 100%
6 statements
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-14 21:41 +0100
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-14 21:41 +0100
1# isort: skip_file
2from .Extractor import Extractor
5# gets sphinx autodoc done right - don't remove it
6def __appropriate__(*args):
7 """Says object was actually declared here, and not in the import module.
8 Fixing sphinx warnings of not being able to find classes, when path is
9 shortened. Parameters:
11 *args: An iterable of objects to modify
13 Resolves `Sphinx referencing issues
14 <https://github.com/sphinx-doc/sphinx/issues/3048>`
15 """
17 for obj in args:
18 obj.__module__ = __name__
21__appropriate__(
22 Extractor,
23)
24__all__ = [_ for _ in dir() if not _.startswith("_")]