Coverage for src/bob/bio/base/annotator/__init__.py: 100%
8 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 .Annotator import Annotator
3from .FailSafe import FailSafe
4from .Callable import Callable
7# gets sphinx autodoc done right - don't remove it
8def __appropriate__(*args):
9 """Says object was actually declared here, and not in the import module.
10 Fixing sphinx warnings of not being able to find classes, when path is
11 shortened.
13 Parameters
14 ----------
15 *args
16 An iterable of objects to modify
18 Resolves `Sphinx referencing issues
19 <https://github.com/sphinx-doc/sphinx/issues/3048>`
20 """
22 for obj in args:
23 obj.__module__ = __name__
26__appropriate__(
27 Annotator,
28 FailSafe,
29 Callable,
30)
32__all__ = [_ for _ in dir() if not _.startswith("_")]