File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -584,19 +584,13 @@ def raise_assert_detail(
584
584
585
585
if isinstance (left , np .ndarray ):
586
586
left = pprint_thing (left )
587
- elif isinstance (left , (CategoricalDtype , NumpyEADtype )):
587
+ elif isinstance (left , (CategoricalDtype , StringDtype , NumpyEADtype )):
588
588
left = repr (left )
589
- elif isinstance (left , StringDtype ):
590
- # TODO(infer_string) this special case could be avoided if we have
591
- # a more informative repr https://github.com/pandas-dev/pandas/issues/59342
592
- left = f"StringDtype(storage={ left .storage } , na_value={ left .na_value } )"
593
589
594
590
if isinstance (right , np .ndarray ):
595
591
right = pprint_thing (right )
596
- elif isinstance (right , (CategoricalDtype , NumpyEADtype )):
592
+ elif isinstance (right , (CategoricalDtype , StringDtype , NumpyEADtype )):
597
593
right = repr (right )
598
- elif isinstance (right , StringDtype ):
599
- right = f"StringDtype(storage={ right .storage } , na_value={ right .na_value } )"
600
594
601
595
msg += f"""
602
596
[left]: { left }
You can’t perform that action at this time.
0 commit comments