def info ( self ):
        klass = self.klass
        if not isinstance( klass, basestring ):
            klass = klass.__name__

        if self.adapt == 0:
            result = class_of( klass )
        else:
            result = ('an implementor of, or can be adapted to implement, %s' %
                      klass)

        if self._allow_none:
            return result + ' or None'

        return result
Returns a description of the trait.
dataset/ETHPy150Open enthought/traits/traits/trait_types.py/BaseInstance.info