BUG: Check types in Index.__contains__ (#22085)
- [x] closes #22085
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

I added is_float, is_integer_dtype in Index.__contains__.
If key is float and dtype of Index object is integer, return False.

And this is the same as #22360. I deleted the branch while rebasing it... 😅