You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sphinx-autoapi/autoapi/utils.py

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)