Coverage for src/bob/pipelines/dataset/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.6.0, created at 2024-07-12 21:32 +0200

1"""Functionalities related to datasets processing.""" 

2 

3from .database import CSVToSamples, FileListDatabase, FileListToSamples 

4from .protocols import ( # noqa: F401 

5 download_protocol_definition, 

6 list_group_names, 

7 list_protocol_names, 

8 open_definition_file, 

9) 

10 

11 

12def __appropriate__(*args): 

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

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

15 shortened. 

16 

17 Parameters 

18 ---------- 

19 *args 

20 The objects that you want sphinx to believe that are defined here. 

21 

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

23 doc/sphinx/issues/3048>` 

24 """ 

25 

26 for obj in args: 

27 obj.__module__ = __name__ 

28 

29 

30__appropriate__( 

31 FileListToSamples, 

32 CSVToSamples, 

33 FileListDatabase, 

34)