Skip to content
Snippets Groups Projects

Fix cross-referencing issues (closes #9)

Merged André Anjos requested to merge issue_9 into master
2 files
+ 21
4
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 20
0
@@ -9,6 +9,7 @@ that can be used in Biometry, Machine Learning or Pattern Classification."""
@@ -9,6 +9,7 @@ that can be used in Biometry, Machine Learning or Pattern Classification."""
import pkg_resources
import pkg_resources
from . import utils, driver
from . import utils, driver
 
from .file import File
from .file import File
from .database import Database, SQLiteDatabase
from .database import Database, SQLiteDatabase
from .annotations import read_annotation_file
from .annotations import read_annotation_file
@@ -23,4 +24,23 @@ def get_config():
@@ -23,4 +24,23 @@ def get_config():
# gets sphinx autodoc done right - don't remove it
# 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,
 
Database,
 
SQLiteDatabase,
 
read_annotation_file,
 
)
__all__ = [_ for _ in dir() if not _.startswith('_')]
__all__ = [_ for _ in dir() if not _.startswith('_')]
Loading