File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 10
10
TYPE_CHECKING ,
11
11
Iterable ,
12
12
Iterator ,
13
- List ,
14
13
Mapping ,
15
- Optional ,
16
14
Sequence ,
17
- Union ,
18
15
)
19
16
20
17
from pandas ._config import get_option
@@ -114,7 +111,7 @@ class BaseInfo(ABC):
114
111
"""
115
112
116
113
data : DataFrame | Series
117
- memory_usage : Union [ bool , str ]
114
+ memory_usage : bool | str
118
115
119
116
@property
120
117
@abstractmethod
@@ -502,7 +499,7 @@ def _create_table_builder(self) -> SeriesTableBuilder:
502
499
else :
503
500
return SeriesTableBuilderNonVerbose (info = self .info )
504
501
505
- def _initialize_show_counts (self , show_counts : Optional [ bool ] ) -> bool :
502
+ def _initialize_show_counts (self , show_counts : bool | None ) -> bool :
506
503
if show_counts is None :
507
504
return True
508
505
else :
@@ -806,13 +803,13 @@ class SeriesTableBuilder(TableBuilderAbstract):
806
803
def __init__ (self , * , info : SeriesInfo ):
807
804
self .info : SeriesInfo = info
808
805
809
- def get_lines (self ) -> List [str ]:
806
+ def get_lines (self ) -> list [str ]:
810
807
self ._lines = []
811
808
self ._fill_non_empty_info ()
812
809
return self ._lines
813
810
814
811
@property
815
- def data (self ) -> " Series" :
812
+ def data (self ) -> Series :
816
813
"""Series."""
817
814
return self .info .data
818
815
You can’t perform that action at this time.
0 commit comments