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

8 statements  

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

1# isort: skip_file 

2from .utils import ( # noqa: F401 

3 select_frames, 

4 VideoAsArray, 

5 VideoLikeContainer, 

6 video_wrap_skpipeline, 

7) 

8from . import annotator # noqa: F401 

9from . import transformer # noqa: F401 

10 

11 

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

13def __appropriate__(*args): 

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

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

16 shortened. 

17 

18 Parameters 

19 ---------- 

20 *args 

21 An iterable of objects to modify 

22 

23 Resolves `Sphinx referencing issues 

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

25 """ 

26 

27 for obj in args: 

28 obj.__module__ = __name__ 

29 

30 

31__appropriate__( 

32 VideoAsArray, 

33 VideoLikeContainer, 

34) 

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

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