from typing import Optional
from pathlib import Path


def _resolve_path(path: Optional[str]) -> Optional[Path]:
    """Resolves a user provided path. Returns None for empty string.
    Does not confirm the file exists.
    """
    if not path:
        return None
    return Path(path).expanduser().absolute()