Coverage for src/bob/bio/face/annotator/__init__.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.6.0, created at 2024-07-13 00:04 +0200

1# isort: skip_file 

2from .utils import * # noqa: F401,F403 

3from .Base import Base 

4from .mtcnn import MTCNN 

5from .tinyface import TinyFace 

6from .faceX_106landmarks import FaceX106Landmarks, FaceXDetector 

7from .utils import BoundingBox 

8 

9 

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

11def __appropriate__(*args): 

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

13 Fixing sphinx warnings of not being able to find classes, when path is 

14 shortened. 

15 

16 Parameters 

17 ---------- 

18 *args 

19 An iterable of objects to modify 

20 

21 Resolves `Sphinx referencing issues 

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

23 """ 

24 

25 for obj in args: 

26 obj.__module__ = __name__ 

27 

28 

29__appropriate__( 

30 Base, 

31 MTCNN, 

32 TinyFace, 

33 FaceX106Landmarks, 

34 FaceXDetector, 

35 BoundingBox, 

36) 

37 

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