from typing import List
import ast


def _h5attr2list(attr: str) -> List[str]:
    """Convert an HDF5 attribute to a list of strings"""
    if not attr or attr == "list()":
        return list()
    return ast.literal_eval(attr)