@@ -869,13 +869,13 @@ def _get_gross_column_widths(self) -> Sequence[int]:
869
869
return [
870
870
max (* widths )
871
871
for widths in zip (
872
- self .header_column_widths , body_column_widths , strict = True
872
+ self .header_column_widths , body_column_widths
873
873
)
874
874
]
875
875
876
876
def _get_body_column_widths (self ) -> Sequence [int ]:
877
877
"""Get widths of table content columns."""
878
- strcols : Sequence [Sequence [str ]] = list (zip (* self .strrows , strict = True ))
878
+ strcols : Sequence [Sequence [str ]] = list (zip (* self .strrows ))
879
879
return [max (len (x ) for x in col ) for col in strcols ]
880
880
881
881
def _gen_rows (self ) -> Iterator [Sequence [str ]]:
@@ -902,7 +902,7 @@ def add_header_line(self) -> None:
902
902
[
903
903
_put_str (header , col_width )
904
904
for header , col_width in zip (
905
- self .headers , self .gross_column_widths , strict = True
905
+ self .headers , self .gross_column_widths
906
906
)
907
907
]
908
908
)
@@ -925,7 +925,7 @@ def add_body_lines(self) -> None:
925
925
[
926
926
_put_str (col , gross_colwidth )
927
927
for col , gross_colwidth in zip (
928
- row , self .gross_column_widths , strict = True
928
+ row , self .gross_column_widths
929
929
)
930
930
]
931
931
)
@@ -985,8 +985,7 @@ def _gen_rows_without_counts(self) -> Iterator[Sequence[str]]:
985
985
yield from zip (
986
986
self ._gen_line_numbers (),
987
987
self ._gen_columns (),
988
- self ._gen_dtypes (),
989
- strict = True ,
988
+ self ._gen_dtypes (),
990
989
)
991
990
992
991
def _gen_rows_with_counts (self ) -> Iterator [Sequence [str ]]:
@@ -995,8 +994,7 @@ def _gen_rows_with_counts(self) -> Iterator[Sequence[str]]:
995
994
self ._gen_line_numbers (),
996
995
self ._gen_columns (),
997
996
self ._gen_non_null_counts (),
998
- self ._gen_dtypes (),
999
- strict = True ,
997
+ self ._gen_dtypes (),
1000
998
)
1001
999
1002
1000
def _gen_line_numbers (self ) -> Iterator [str ]:
@@ -1100,7 +1098,7 @@ def _gen_rows_without_counts(self) -> Iterator[Sequence[str]]:
1100
1098
1101
1099
def _gen_rows_with_counts (self ) -> Iterator [Sequence [str ]]:
1102
1100
"""Iterator with string representation of body data with counts."""
1103
- yield from zip (self ._gen_non_null_counts (), self ._gen_dtypes (), strict = True )
1101
+ yield from zip (self ._gen_non_null_counts (), self ._gen_dtypes ())
1104
1102
1105
1103
1106
1104
def _get_dataframe_dtype_counts (df : DataFrame ) -> Mapping [str , int ]:
0 commit comments