Coverage for src/bob/bio/base/database/filelist/__init__.py: 100%
7 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 .models import FileListFile
3from .query import FileListBioDatabase
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:
12 *args: An iterable of objects to modify
14 Resolves `Sphinx referencing issues
15 <https://github.com/sphinx-doc/sphinx/issues/3048>`
16 """
18 for obj in args:
19 obj.__module__ = __name__
22__appropriate__(
23 FileListFile,
24 FileListBioDatabase,
25)
26__all__ = [_ for _ in dir() if not _.startswith("_")]