STYLE #49656: format.py - 9.99/10
- [ ] xref #49656 
- [ ] [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
- [ ] 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.

@MarcoGorelli I updated the format.py. There is one test that failed, but I am not sure what is the reason. Can you help me check it out, please? hey @bang128 - there's already a PR open to address `format.py` I'm afraid. Closing then, but thanks for your PR! @MarcoGorelli Oh, okay. Thank you for letting me know.