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

7 statements  

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

1# isort: skip_file 

2from .models import FileListFile 

3from .query import FileListBioDatabase 

4 

5 

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

7def __appropriate__(*args): 

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

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

10 Parameters: 

11 

12 *args: An iterable of objects to modify 

13 

14 Resolves `Sphinx referencing issues 

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

16 """ 

17 

18 for obj in args: 

19 obj.__module__ = __name__ 

20 

21 

22__appropriate__( 

23 FileListFile, 

24 FileListBioDatabase, 

25) 

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