Skip to content

Commit 9fa09a0

Browse files
Backport PR pandas-dev#52308 on branch 2.0.x (TYP: Remove unneeded type ignore) (pandas-dev#52317)
Backport PR pandas-dev#52308: TYP: Remove unneeded type ignore Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 73033f8 commit 9fa09a0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/io/formats/printing.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,7 @@ def enable_data_resource_formatter(enable: bool) -> None:
263263

264264
class TableSchemaFormatter(BaseFormatter):
265265
print_method = ObjectName("_repr_data_resource_")
266-
# Incompatible types in assignment (expression has type
267-
# "Tuple[Type[Dict[Any, Any]]]", base class "BaseFormatter"
268-
# defined the type as "Type[str]")
269-
_return_type = (dict,) # type: ignore[assignment]
266+
_return_type = (dict,)
270267

271268
# register it:
272269
formatters[mimetype] = TableSchemaFormatter()

0 commit comments

Comments
 (0)