Skip to content

Commit 8acd314

Browse files
author
MarcoGorelli
committed
fix typing with latest ipython
1 parent 179dc14 commit 8acd314

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/formats/printing.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,10 @@ def enable_data_resource_formatter(enable: bool) -> None:
259259
if mimetype not in formatters:
260260
# define tableschema formatter
261261
from IPython.core.formatters import BaseFormatter
262+
from traitlets import ObjectName
262263

263264
class TableSchemaFormatter(BaseFormatter):
264-
print_method = "_repr_data_resource_"
265+
print_method = ObjectName("_repr_data_resource_")
265266
_return_type = (dict,)
266267

267268
# register it:

0 commit comments

Comments
 (0)