Skip to content

Commit 0a431c5

Browse files
authored
_ValueT -> _CellValueT
1 parent a6b6fb2 commit 0a431c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/excel/_calaminereader.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
StorageOptions,
2727
)
2828

29-
_ValueT = Union[int, float, str, bool, time, date, datetime]
29+
_CellValueT = Union[int, float, str, bool, time, date, datetime]
3030

3131

3232
class CalamineExcelReader(BaseExcelReader):
@@ -74,7 +74,7 @@ def get_sheet_by_index(self, index: int):
7474
def get_sheet_data(
7575
self, sheet, file_rows_needed: int | None = None
7676
) -> list[list[Scalar]]:
77-
def _convert_cell(value: _ValueT) -> Scalar:
77+
def _convert_cell(value: _CellValueT) -> Scalar:
7878
if isinstance(value, float):
7979
val = int(value)
8080
if val == value:
@@ -88,7 +88,7 @@ def _convert_cell(value: _ValueT) -> Scalar:
8888

8989
return value
9090

91-
rows: list[list[_ValueT]] = sheet.to_python(skip_empty_area=False)
91+
rows: list[list[_CellValueT]] = sheet.to_python(skip_empty_area=False)
9292
data: list[list[Scalar]] = []
9393

9494
for row in rows:

0 commit comments

Comments
 (0)