Skip to content

Commit 108248e

Browse files
Backport PR #50562 on branch 1.5.x (CI Ipython ci fixup again) (#50568)
Backport PR #50562: CI Ipython ci fixup again Co-authored-by: Marco Edward Gorelli <[email protected]>
1 parent a29e3bc commit 108248e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/io/formats/printing.py

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

264264
class TableSchemaFormatter(BaseFormatter):
265265
print_method = ObjectName("_repr_data_resource_")
266-
_return_type = (dict,)
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]
267270

268271
# register it:
269272
formatters[mimetype] = TableSchemaFormatter()

0 commit comments

Comments
 (0)