TYP: mypy fix in pandas/io/formats
Fixes a mypy error I'm seeing:

```bash
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

pandas/io/formats/printing.py:269: error: Unused "type: ignore" comment
pandas/tests/test_register_accessor.py:16: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
pandas/tests/io/xml/test_xml.py:1127: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
pandas/tests/io/xml/test_xml.py:1306: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
pandas/tests/io/xml/test_to_xml.py:995: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
Found 1 error in 1 file (checked 1397 source files)
```

This probably re-enables the error? This was ignored because the ci was failing Locally I currently get a mypy error on main, and this fixes the issue, so IDK if it's different on the CI? Let's wait and see if this PR passes the CI? Did you upgrade IPython to 8.8.0? That is what caused the error on the ci Ok, no, I'm on a lower version. I'll close this PR then.

Should the ipython entry in `requirements-dev.txt` be changed to `ipython >= 8.8.0`? No, we don't want to pin to anything higher than the minimum dependency