import pathlib
import tempfile


def gettempdir() -> pathlib.Path:
    """
    Wrap ``tempfile.gettempdir``.

    Please see the documentation of ``tempfile.gettempdir`` for more details:
    https://docs.python.org/3/library/tempfile.html#tempfile.gettempdir
    """
    return pathlib.Path(tempfile.gettempdir())