1
1
from collections import defaultdict
2
2
import datetime
3
- from typing import Any , DefaultDict , Dict , List , Optional , Tuple
3
+ from typing import Any , DefaultDict , Dict , List , Optional , Tuple , Union
4
4
5
5
import pandas ._libs .json as json
6
6
@@ -89,7 +89,7 @@ def write_cells(
89
89
for row_nr in range (max (rows .keys ()) + 1 ):
90
90
wks .addElement (rows [row_nr ])
91
91
92
- def _make_table_cell_attributes (self , cell ) -> Dict [str , Any ]:
92
+ def _make_table_cell_attributes (self , cell ) -> Dict [str , Union [ int , str ] ]:
93
93
"""Convert cell attributes to OpenDocument attributes
94
94
95
95
Parameters
@@ -99,10 +99,10 @@ def _make_table_cell_attributes(self, cell) -> Dict[str, Any]:
99
99
100
100
Returns
101
101
-------
102
- attributes : Dict[str, object ]
102
+ attributes : Dict[str, Union[int, str] ]
103
103
Dictionary with attributes and attribute values
104
104
"""
105
- attributes : Dict [str , object ] = {}
105
+ attributes : Dict [str , Union [ int , str ] ] = {}
106
106
style_name = self ._process_style (cell .style )
107
107
if style_name is not None :
108
108
attributes ["stylename" ] = style_name
0 commit comments