from typing import List


def split(x: str, sep: str, maxsplit: int) -> List[str]:
    """Same as x.split but always returns a list
    of length `maxsplit+1`, padded with empty strings."""
    parts = x.split(sep, maxsplit)
    extra = [""] * (maxsplit + 1 - len(parts))
    return [*parts, *extra]