CLN : Removed unnecessary numba-compat code
- [x] closes ##50392 (Replace xxxx with the GitHub issue number)
- [ ] [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.

can you run the code checks please? Yes, sure I ran tests fro this individual file and everything seems fine.

![Screenshot_2023-05-28_17-10-26](https://github.com/pandas-dev/pandas/assets/115390367/d4b40a25-9a98-410a-aab2-9a99dad44cfe)

Then, I ran code checks for all files and it also seems to be working fine.

![Screenshot_2023-06-30_20-46-37](https://github.com/pandas-dev/pandas/assets/115390367/d5c818b4-a789-4465-b5f4-79a66ea58ddf)
 it fails in CI, so I guess you didn't commit? It was a insignificant change, it should pass CI now ig.
