ENH: consistency of input args for boundaries -  pd.interval_range
- [x] xref #40245 
- [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 an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

see the other PRs on that issue for how to do this. > pandas/core/indexes/interval.py:1152: error: Argument "closed" to "from_breaks" of "IntervalIndex" has incompatible type "Optional[str]"; expected "str"  [arg-type] Hello @weikhor! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:

























There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2022-04-03 07:28:29 UTC thanks @weikhor 