@@ -204,7 +204,7 @@ def __init__(
204
204
length : bool = True ,
205
205
na_rep : str = "NaN" ,
206
206
footer : bool = True ,
207
- ):
207
+ ) -> None :
208
208
self .categorical = categorical
209
209
self .buf = buf if buf is not None else StringIO ("" )
210
210
self .na_rep = na_rep
@@ -274,7 +274,7 @@ def __init__(
274
274
dtype : bool = True ,
275
275
max_rows : int | None = None ,
276
276
min_rows : int | None = None ,
277
- ):
277
+ ) -> None :
278
278
self .series = series
279
279
self .buf = buf if buf is not None else StringIO ()
280
280
self .name = name
@@ -421,7 +421,7 @@ def to_string(self) -> str:
421
421
422
422
423
423
class TextAdjustment :
424
- def __init__ (self ):
424
+ def __init__ (self ) -> None :
425
425
self .encoding = get_option ("display.encoding" )
426
426
427
427
def len (self , text : str ) -> int :
@@ -435,7 +435,7 @@ def adjoin(self, space: int, *lists, **kwargs) -> str:
435
435
436
436
437
437
class EastAsianTextAdjustment (TextAdjustment ):
438
- def __init__ (self ):
438
+ def __init__ (self ) -> None :
439
439
super ().__init__ ()
440
440
if get_option ("display.unicode.ambiguous_as_wide" ):
441
441
self .ambiguous_width = 2
@@ -578,7 +578,7 @@ def __init__(
578
578
decimal : str = "." ,
579
579
bold_rows : bool = False ,
580
580
escape : bool = True ,
581
- ):
581
+ ) -> None :
582
582
self .frame = frame
583
583
self .columns = self ._initialize_columns (columns )
584
584
self .col_space = self ._initialize_colspace (col_space )
@@ -1017,7 +1017,7 @@ class DataFrameRenderer:
1017
1017
Formatter with the formatting options.
1018
1018
"""
1019
1019
1020
- def __init__ (self , fmt : DataFrameFormatter ):
1020
+ def __init__ (self , fmt : DataFrameFormatter ) -> None :
1021
1021
self .fmt = fmt
1022
1022
1023
1023
def to_latex (
@@ -1332,7 +1332,7 @@ def __init__(
1332
1332
quoting : int | None = None ,
1333
1333
fixed_width : bool = True ,
1334
1334
leading_space : bool | None = True ,
1335
- ):
1335
+ ) -> None :
1336
1336
self .values = values
1337
1337
self .digits = digits
1338
1338
self .na_rep = na_rep
@@ -1425,7 +1425,7 @@ def _format(x):
1425
1425
1426
1426
1427
1427
class FloatArrayFormatter (GenericArrayFormatter ):
1428
- def __init__ (self , * args , ** kwargs ):
1428
+ def __init__ (self , * args , ** kwargs ) -> None :
1429
1429
super ().__init__ (* args , ** kwargs )
1430
1430
1431
1431
# float_format is expected to be a string
@@ -1614,7 +1614,7 @@ def __init__(
1614
1614
nat_rep : str = "NaT" ,
1615
1615
date_format : None = None ,
1616
1616
** kwargs ,
1617
- ):
1617
+ ) -> None :
1618
1618
super ().__init__ (values , ** kwargs )
1619
1619
self .nat_rep = nat_rep
1620
1620
self .date_format = date_format
@@ -1823,7 +1823,7 @@ def __init__(
1823
1823
nat_rep : str = "NaT" ,
1824
1824
box : bool = False ,
1825
1825
** kwargs ,
1826
- ):
1826
+ ) -> None :
1827
1827
super ().__init__ (values , ** kwargs )
1828
1828
self .nat_rep = nat_rep
1829
1829
self .box = box
@@ -2023,7 +2023,9 @@ class EngFormatter:
2023
2023
24 : "Y" ,
2024
2024
}
2025
2025
2026
- def __init__ (self , accuracy : int | None = None , use_eng_prefix : bool = False ):
2026
+ def __init__ (
2027
+ self , accuracy : int | None = None , use_eng_prefix : bool = False
2028
+ ) -> None :
2027
2029
self .accuracy = accuracy
2028
2030
self .use_eng_prefix = use_eng_prefix
2029
2031
0 commit comments