BUG fix for date_range 56134
- [X] closes https://github.com/pandas-dev/pandas/issues/56134
- [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).
- [X] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [X] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

Edit, the first commit is incorrectly named - it fixes 56134 instead

pre-commit.ci autofix Thanks for updating!

> Edit, the first commit is incorrectly named - it fixes 56134 instead

it's fine, commits are squashed together anyway, the title of the PR is more important