from typing import List
from typing import Any


def pad_list(l: List[Any], length: int, item: Any) -> List[Any]:  # noqa: E741
    """Pads a list to the specified length.

    Note that if the input list is longer than the specified length it is not
    truncated.

    Args:
        l: The input list.
        length: The desired length of the list.
        item: The item to use to pad the list.

    Returns:
        The padded list.
    """
    return l + [item] * (length - len(l))