Skip to content

Commit 59c60aa

Browse files
authored
Update pandas/io/formats/printing.py
1 parent 8fca342 commit 59c60aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/io/formats/printing.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ 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+
# expression has type "Tuple[Type[Dict[Any, Any]]]",
267+
# base class "BaseFormatter" defined the type as "Type[str]"
268+
_return_type = (dict,) # type: ignore[assignment]
267269

268270
# register it:
269271
formatters[mimetype] = TableSchemaFormatter()

0 commit comments

Comments
 (0)