def bool_type_next_after(x, direction, itemsize):
    """Return the next representable neighbor of x in the appropriate
    direction."""
    assert direction in [-1, +1]
    if direction < 0:
        return False
    else:
        return True
