@@ -869,13 +869,13 @@ def _get_gross_column_widths(self) -> Sequence[int]:
869869 return [
870870 max (* widths )
871871 for widths in zip (
872- self .header_column_widths , body_column_widths , strict = True
872+ self .header_column_widths , body_column_widths
873873 )
874874 ]
875875
876876 def _get_body_column_widths (self ) -> Sequence [int ]:
877877 """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 ))
879879 return [max (len (x ) for x in col ) for col in strcols ]
880880
881881 def _gen_rows (self ) -> Iterator [Sequence [str ]]:
@@ -902,7 +902,7 @@ def add_header_line(self) -> None:
902902 [
903903 _put_str (header , col_width )
904904 for header , col_width in zip (
905- self .headers , self .gross_column_widths , strict = True
905+ self .headers , self .gross_column_widths
906906 )
907907 ]
908908 )
@@ -925,7 +925,7 @@ def add_body_lines(self) -> None:
925925 [
926926 _put_str (col , gross_colwidth )
927927 for col , gross_colwidth in zip (
928- row , self .gross_column_widths , strict = True
928+ row , self .gross_column_widths
929929 )
930930 ]
931931 )
@@ -985,8 +985,7 @@ def _gen_rows_without_counts(self) -> Iterator[Sequence[str]]:
985985 yield from zip (
986986 self ._gen_line_numbers (),
987987 self ._gen_columns (),
988- self ._gen_dtypes (),
989- strict = True ,
988+ self ._gen_dtypes (),
990989 )
991990
992991 def _gen_rows_with_counts (self ) -> Iterator [Sequence [str ]]:
@@ -995,8 +994,7 @@ def _gen_rows_with_counts(self) -> Iterator[Sequence[str]]:
995994 self ._gen_line_numbers (),
996995 self ._gen_columns (),
997996 self ._gen_non_null_counts (),
998- self ._gen_dtypes (),
999- strict = True ,
997+ self ._gen_dtypes (),
1000998 )
1001999
10021000 def _gen_line_numbers (self ) -> Iterator [str ]:
@@ -1100,7 +1098,7 @@ def _gen_rows_without_counts(self) -> Iterator[Sequence[str]]:
11001098
11011099 def _gen_rows_with_counts (self ) -> Iterator [Sequence [str ]]:
11021100 """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 ())
11041102
11051103
11061104def _get_dataframe_dtype_counts (df : DataFrame ) -> Mapping [str , int ]:
0 commit comments