def expand_paths_vars(paths: List[str]) -> List[str]:
    'Expand the environment or ~ variables in a list.'
    paths = [expand_path_vars(p) for p in paths]
    return paths
Expand the environment or ~ variables in a list.
def expand_paths_vars(paths: List[str]) -> List[str]:
    
    paths = [expand_path_vars(p) for p in paths]
    return paths