Skip to content

Commit 816803e

Browse files
committed
Fix styling
1 parent 0d1c5d8 commit 816803e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

pandas/io/formats/info.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010
TYPE_CHECKING,
1111
Iterable,
1212
Iterator,
13-
List,
1413
Mapping,
15-
Optional,
1614
Sequence,
17-
Union,
1815
)
1916

2017
from pandas._config import get_option
@@ -114,7 +111,7 @@ class BaseInfo(ABC):
114111
"""
115112

116113
data: DataFrame | Series
117-
memory_usage: Union[bool, str]
114+
memory_usage: bool | str
118115

119116
@property
120117
@abstractmethod
@@ -502,7 +499,7 @@ def _create_table_builder(self) -> SeriesTableBuilder:
502499
else:
503500
return SeriesTableBuilderNonVerbose(info=self.info)
504501

505-
def _initialize_show_counts(self, show_counts: Optional[bool]) -> bool:
502+
def _initialize_show_counts(self, show_counts: bool | None) -> bool:
506503
if show_counts is None:
507504
return True
508505
else:
@@ -806,13 +803,13 @@ class SeriesTableBuilder(TableBuilderAbstract):
806803
def __init__(self, *, info: SeriesInfo):
807804
self.info: SeriesInfo = info
808805

809-
def get_lines(self) -> List[str]:
806+
def get_lines(self) -> list[str]:
810807
self._lines = []
811808
self._fill_non_empty_info()
812809
return self._lines
813810

814811
@property
815-
def data(self) -> "Series":
812+
def data(self) -> Series:
816813
"""Series."""
817814
return self.info.data
818815

0 commit comments

Comments
 (0)