def _get_pants_target_alias(self, pants_target_type):
    if pants_target_type in self.target_aliases_map:
      return self.target_aliases_map.get(pants_target_type)
    else:
      return "{}.{}".format(pants_target_type.__module__, pants_target_type.__name__)
Returns the pants target alias for the given target
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/project_info/tasks/export.py/ExportTask._get_pants_target_alias