Coverage for src/bob/pad/face/preprocessor/__init__.py: 100%

6 statements  

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

1# isort: skip_file 

2from .Patch import ImagePatches, VideoPatches 

3 

4 

5def __appropriate__(*args): 

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

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

8 shortened. 

9 

10 Parameters 

11 ---------- 

12 *args 

13 The objects that you want sphinx to beleive that are defined here. 

14 

15 Resolves `Sphinx referencing issues <https//github.com/sphinx- 

16 doc/sphinx/issues/3048>` 

17 """ 

18 

19 for obj in args: 

20 obj.__module__ = __name__ 

21 

22 

23__appropriate__( 

24 ImagePatches, 

25 VideoPatches, 

26) 

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