STYLE enable ruff TCH on pandas/core/arrays
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

I finished the task STYLE enable ruff TCH #51740 

 thanks @clarkwiththew - can you remove the folder for which you've enabled this (pandas/core/arrays) from `pyproject.toml` please? I removed the folder from pyproject.toml
 thanks - can you also run `pre-commit run --all-files` please? something went wrong when merging, there's lots of unrelated changes I'm fixing it right now I've made some changes, hopefully the issues should be removed not quite, sorry I think the pre-commit changed a lot of other files, I'm going to try again on a new branch I ran the pre-commit and only the edited files should be changed now. I made a new PR here:

https://github.com/pandas-dev/pandas/pull/51786