Commit 2d2968ec authored by André Anjos's avatar André Anjos 💬
Browse files

Fix doc building

parent b1c8ca4c
Pipeline #5829 passed with stages
in 15 minutes and 27 seconds
......@@ -73,3 +73,24 @@ class Database(object):
files += [File(**k) for k in self.metadata if k['basedir'] in sessions]
return files
# gets sphinx autodoc done right - don't remove it
def __appropriate__(*args):
"""Says object was actually declared here, an not on the import module.
Parameters:
*args: An iterable of objects to modify
Resolves `Sphinx referencing issues
<https://github.com/sphinx-doc/sphinx/issues/3048>`
"""
for obj in args: obj.__module__ = __name__
__appropriate__(
File,
)
__all__ = [_ for _ in dir() if not _.startswith('_')]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment