

def _get_type_name(self, type_or_type_name):
    " Returns the full dotted path for a type.\n\n        For example:\n        from traits.api import HasTraits\n        _get_type_name(HasTraits) == 'traits.has_traits.HasTraits'\n\n        If the type is given as a string (e.g., for lazy loading), it is just\n        returned.\n\n        "
    if isinstance(type_or_type_name, basestring):
        type_name = type_or_type_name
    else:
        type_name = '{module}.{name}'.format(module=type_or_type_name.__module__, name=type_name.__name__)
    return type_name

dataset/ETHPy150Open enthought/traits/traits/adaptation/adaptation_offer.py AdaptationOffer._get_type_name/VarMisuse@47/199 `type_or_type_name`->`type_name`