sphinx-autoapi/autoapi/utils.py
Anthony Johnson 4b13bebc8e Large refactor. Cleans up, adds tests, intermediate namespaces
Indexes are still broken due to past changes, but intermediate namespaces are
now linkable.
2015-04-14 15:59:09 -07:00

17 lines
459 B
Python

from .base import UnknownType
#from .python import PythonModule, PythonClass, PythonFunction
#def classify(obj, obj_type):
# if 'type' not in obj:
# return ''
#
# if obj_type == 'python':
# if obj['type'] == 'module':
# return PythonModule(obj)
# if obj['type'] == 'class':
# return PythonClass(obj)
# if obj['type'] == 'function':
# return PythonFunction(obj)
# return UnknownType(obj)