@@ -231,7 +231,7 @@ def __init__(
231
231
self ,
232
232
series : "Series" ,
233
233
buf : Optional [IO [str ]] = None ,
234
- length : bool = True ,
234
+ length : Union [ bool , str ] = True ,
235
235
header : bool = True ,
236
236
index : bool = True ,
237
237
na_rep : str = "NaN" ,
@@ -450,7 +450,7 @@ def _get_adjustment() -> TextAdjustment:
450
450
451
451
class TableFormatter :
452
452
453
- show_dimensions : bool
453
+ show_dimensions : Union [ bool , str ]
454
454
is_truncated : bool
455
455
formatters : formatters_type
456
456
columns : Index
@@ -554,7 +554,7 @@ def __init__(
554
554
max_rows : Optional [int ] = None ,
555
555
min_rows : Optional [int ] = None ,
556
556
max_cols : Optional [int ] = None ,
557
- show_dimensions : bool = False ,
557
+ show_dimensions : Union [ bool , str ] = False ,
558
558
decimal : str = "." ,
559
559
table_id : Optional [str ] = None ,
560
560
render_links : bool = False ,
@@ -1276,7 +1276,7 @@ class FloatArrayFormatter(GenericArrayFormatter):
1276
1276
"""
1277
1277
1278
1278
def __init__ (self , * args , ** kwargs ):
1279
- GenericArrayFormatter .__init__ (self , * args , ** kwargs )
1279
+ super () .__init__ (* args , ** kwargs )
1280
1280
1281
1281
# float_format is expected to be a string
1282
1282
# formatter should be used to pass a function
0 commit comments