Skip to content

Commit a29e3bc

Browse files
Backport PR #50544 on branch 1.5.x (CI fix typing with latest ipython) (#50555)
Backport PR #50544: CI fix typing with latest ipython Co-authored-by: Marco Edward Gorelli <[email protected]>
1 parent 113ca72 commit a29e3bc

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)