From d0cd6ad56bbddc4dccd9d8ba9d7f1b1a985929bc Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Thu, 30 Mar 2023 19:33:51 -0700 Subject: [PATCH] Backport PR #52308: TYP: Remove unneeded type ignore --- pandas/io/formats/printing.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py index e734304471144..1f0341a608288 100644 --- a/pandas/io/formats/printing.py +++ b/pandas/io/formats/printing.py @@ -263,10 +263,7 @@ def enable_data_resource_formatter(enable: bool) -> None: class TableSchemaFormatter(BaseFormatter): print_method = ObjectName("_repr_data_resource_") - # 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] + _return_type = (dict,) # register it: formatters[mimetype] = TableSchemaFormatter()