from typing import Union
from pathlib import Path


def expand(target: Union[Path, str]) -> Path:
    """Expand path into absolute path with home directory resolved"""
    return Path(target).expanduser().absolute()