File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ def __init__(
584
584
self .show_dimensions = show_dimensions
585
585
self .table_id = table_id
586
586
self .render_links = render_links
587
- self .justify = justify # type: ignore[assignment]
587
+ self .justify = self . _initialize_justify ( justify )
588
588
self .bold_rows = bold_rows
589
589
self .escape = escape
590
590
self .columns = self ._initialize_columns (columns )
@@ -610,16 +610,11 @@ def _initialize_formatters(
610
610
f"DataFrame number of columns({ len (self .frame .columns )} )"
611
611
)
612
612
613
- @property
614
- def justify (self ) -> str :
615
- return self ._justify
616
-
617
- @justify .setter
618
- def justify (self , justify : Optional [str ]) -> None :
613
+ def _initialize_justify (self , justify : Optional [str ]) -> str :
619
614
if justify is None :
620
- self . _justify = get_option ("display.colheader_justify" )
615
+ return get_option ("display.colheader_justify" )
621
616
else :
622
- self . _justify = justify
617
+ return justify
623
618
624
619
def _initialize_columns (self , columns : Optional [Sequence [str ]]) -> Index :
625
620
if columns is not None :
You can’t perform that action at this time.
0 commit comments