import typing


def fill(length: int, character: typing.AnyStr = b"A") -> typing.AnyStr:
    """Generate b"AAA..." padding

    Args:
        length (int): The length of padding.
        character (str or bytes, optional): The character to fill.
    Returns:
        str or bytes: The string by repeating `character` for `length` times
    """
    return character * length