TYPING: check-untyped-defs for io.formats
xref #27568

```
pandas\io\formats\console.py:68: error: Name '__IPYTHON__' is not defined
pandas\io\formats\console.py:78: error: Name 'get_ipython' is not defined
pandas\io\formats\csvs.py:230: error: Need type annotation for 'encoded_labels'
pandas\io\formats\css.py:92: error: Incompatible types in assignment (expression has type "None", variable has type "float")
pandas\io\formats\css.py:163: error: Item "None" of "Optional[Match[Any]]" has no attribute "groups"
pandas\io\formats\format.py:1710: error: Item "None" of "Optional[TextAdjustment]" has no attribute "len"    
pandas\io\formats\excel.py:537: error: Incompatible types in assignment (expression has type "Generator[ExcelCell, None, None]", variable has type "Tuple[]")
pandas\io\formats\style.py:125: error: Need type annotation for 'ctx'
pandas\io\formats\style.py:126: error: Need type annotation for '_todo'
pandas\io\formats\style.py:147: error: Need type annotation for 'hidden_columns'
pandas\io\formats\style.py:158: error: Need type annotation for '_display_funcs'
pandas\io\formats\style.py:247: error: Need type annotation for 'cell_context'
pandas\io\formats\style.py:554: error: Cannot determine type of 'ctx'
pandas\io\formats\style.py:557: error: Cannot determine type of 'ctx'
pandas\io\formats\style.py:1335: error: Invalid type "cls"
pandas\io\formats\style.py:1335: error: Invalid base class```