Variadic argument version of :func:`~eth.tools.builder.chain.mine_block`

def mine_blocks(num_blocks: int, chain: MiningChain) -> MiningChain:
    """
    Variadic argument version of :func:`~eth.tools.builder.chain.mine_block`
    """
    if not isinstance(chain, MiningChain):
        raise ValidationError('`mine_block` may only be used on MiningChain instances')
    for _ in range(num_blocks):
        chain.mine_block()
    return chain