from typing import Tuple


def _slice_default_bounds(key: slice, length: int) -> Tuple[int, int, int]:
    """Expand the slice to the default bounds.

    Args:
        key: The slice to expand.
        length: The maximum length of the slice.

    Returns:
        The expanded slice.
    """
    return (
        key.start or 0,
        key.stop if key.stop is not None else length,
        key.step or 1,
    )