'Imitate the tree.Node.type values.'

@property
def type(self):

    cls = self._get_class()
    if inspect.isclass(cls):
        return 'classdef'
    elif inspect.ismodule(cls):
        return 'file_input'
    elif (inspect.isbuiltin(cls) or inspect.ismethod(cls) or inspect.ismethoddescriptor(cls)):
        return 'funcdef'
