STYLE: Enable ruff TCH for pandas/core/common.py
- [X] partly fixes #51740
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).

Hi everyone!
Thanks for this awesome package 👍 
This PR will enable `ruff TCH` for the `pandas/core/common.py` file, the necessary changes in said file have been implemented.

Sorry for spamming small changes, the `pre-commit` check doesn't throw any errors locally.. 