Pandas version checks

  • [x] I have checked that this issue has not already been reported.

  • [x] I have confirmed this bug exists on the latest version of pandas.

  • [x] I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

import pandas as pd

arr = pd.array([0, pd.NA, 1], dtype="Float64")
key = arr[[1]]
arr[key] = np.nan  # <- should raise, instead is no-op

Issue Description

This is an invalid key, should raise.

Expected Behavior

N/A

Installed Versions

Replace this line with the output of pd.show_versions()