(self)
Imitate the tree.Node.type values.
Imitate the tree.Node.type values.
Imitate the tree . Node . type values .
def type(self):
        """Imitate the tree.Node.type values."""
        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'
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'