Coverage for src/bob/bio/base/database/__init__.py: 100%
13 statements
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-14 21:41 +0100
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-14 21:41 +0100
1# isort: skip_file
2from .csv_database import CSVDatabase, FileSampleLoader, AnnotationsLoader
3from .file import BioFile
4from .file import BioFileSet
5from .database import BioDatabase
6from .database import ZTBioDatabase
7from .filelist import FileListBioDatabase
8from . import filelist # noqa: F401
9from .atnt import AtntBioDatabase # noqa: F401
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 shortened.
16 Parameters:
18 *args: An iterable of objects to modify
20 Resolves `Sphinx referencing issues
21 <https://github.com/sphinx-doc/sphinx/issues/3048>`
22 """
24 for obj in args:
25 obj.__module__ = __name__
28__appropriate__(
29 BioFile,
30 BioFileSet,
31 BioDatabase,
32 ZTBioDatabase,
33 CSVDatabase,
34 FileSampleLoader,
35 FileListBioDatabase,
36 AtntBioDatabase,
37 AnnotationsLoader,
38)
39__all__ = [_ for _ in dir() if not _.startswith("_")]