From 473aee110080ddeebeaed4bcb7ef499d1b50c9c4 Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Wed, 4 Jan 2023 21:26:31 +0000 Subject: [PATCH] Backport PR #50562: CI Ipython ci fixup again --- pandas/io/formats/printing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py index 10385cce5e276..abb341f6385c1 100644 --- a/pandas/io/formats/printing.py +++ b/pandas/io/formats/printing.py @@ -263,7 +263,10 @@ def enable_data_resource_formatter(enable: bool) -> None: class TableSchemaFormatter(BaseFormatter): print_method = ObjectName("_repr_data_resource_") - _return_type = (dict,) + # Incompatible types in assignment (expression has type + # "Tuple[Type[Dict[Any, Any]]]", base class "BaseFormatter" + # defined the type as "Type[str]") + _return_type = (dict,) # type: ignore[assignment] # register it: formatters[mimetype] = TableSchemaFormatter()