Coverage for src/bob/bio/base/algorithm/__init__.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.6.5, created at 2024-11-14 21:41 +0100

1# isort: skip_file 

2from .distance import Distance 

3from .gmm import GMM 

4from .isv import ISV 

5from .jfa import JFA 

6 

7 

8# gets sphinx autodoc done right - don't remove it 

9def __appropriate__(*args): 

10 """Says object was actually declared here, and not in the import module. 

11 Fixing sphinx warnings of not being able to find classes, when path is shortened. 

12 Parameters: 

13 

14 *args: An iterable of objects to modify 

15 

16 Resolves `Sphinx referencing issues 

17 <https://github.com/sphinx-doc/sphinx/issues/3048>` 

18 """ 

19 

20 for obj in args: 

21 obj.__module__ = __name__ 

22 

23 

24__appropriate__( 

25 Distance, 

26 GMM, 

27 ISV, 

28 JFA, 

29) 

30 

31__all__ = [_ for _ in dir() if not _.startswith("_")]