Skip to content

Commit 05cc445

Browse files
committed
Fix styling
1 parent 0d1c5d8 commit 05cc445

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pandas/io/formats/info.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
TYPE_CHECKING,
1111
Iterable,
1212
Iterator,
13-
List,
1413
Mapping,
1514
Optional,
1615
Sequence,
17-
Union,
1816
)
1917

2018
from pandas._config import get_option
@@ -114,7 +112,7 @@ class BaseInfo(ABC):
114112
"""
115113

116114
data: DataFrame | Series
117-
memory_usage: Union[bool, str]
115+
memory_usage: bool | str
118116

119117
@property
120118
@abstractmethod
@@ -502,7 +500,7 @@ def _create_table_builder(self) -> SeriesTableBuilder:
502500
else:
503501
return SeriesTableBuilderNonVerbose(info=self.info)
504502

505-
def _initialize_show_counts(self, show_counts: Optional[bool]) -> bool:
503+
def _initialize_show_counts(self, show_counts: bool | None) -> bool:
506504
if show_counts is None:
507505
return True
508506
else:
@@ -806,13 +804,13 @@ class SeriesTableBuilder(TableBuilderAbstract):
806804
def __init__(self, *, info: SeriesInfo):
807805
self.info: SeriesInfo = info
808806

809-
def get_lines(self) -> List[str]:
807+
def get_lines(self) -> list[str]:
810808
self._lines = []
811809
self._fill_non_empty_info()
812810
return self._lines
813811

814812
@property
815-
def data(self) -> "Series":
813+
def data(self) -> Series:
816814
"""Series."""
817815
return self.info.data
818816

0 commit comments

Comments
 (0)