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