Skip to content

Commit 3edfbd8

Browse files
Revert some of the typing fixes as they break some of the builds
1 parent 336c231 commit 3edfbd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/excel/_odswriter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ class _ODSWriter(ExcelWriter):
1212
engine = "odf"
1313
supported_extensions = (".ods",)
1414

15-
from odf.table import Table, TableCell, TableRow
16-
1715
def __init__(
1816
self, path: str, engine: Optional[str] = None, mode: str = "w", **engine_kwargs
1917
):
@@ -48,6 +46,7 @@ def write_cells(
4846
"""
4947
Write the frame cells using odf
5048
"""
49+
from odf.table import Table, TableCell, TableRow
5150
from odf.text import P
5251

5352
sheet_name = self._get_sheet_name(sheet_name)
@@ -110,7 +109,7 @@ def _make_table_cell_attributes(self, cell) -> Dict[str, object]:
110109
attributes["numbercolumnsspanned"] = cell.mergeend
111110
return attributes
112111

113-
def _make_table_cell(self, cell) -> Tuple[str, TableCell]:
112+
def _make_table_cell(self, cell) -> Tuple[str, object]:
114113
"""Convert cell data to an OpenDocument spreadsheet cell
115114
116115
Parameters
@@ -123,6 +122,7 @@ def _make_table_cell(self, cell) -> Tuple[str, TableCell]:
123122
pvalue, cell : Tuple[str, object]
124123
Display value, Cell value
125124
"""
125+
from odf.table import TableCell
126126

127127
attributes = self._make_table_cell_attributes(cell)
128128
val, fmt = self._value_with_fmt(cell.val)

0 commit comments

Comments
 (0)