Skip to content

Commit a2822fe

Browse files
committed
ENH: test fixes: Linting and Typing
1 parent db20795 commit a2822fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/formats/style.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def __init__(
171171
self.cell_ids = cell_ids
172172
self.na_rep = na_rep
173173

174-
self.tooltip_styles = None # VERSION ADDED 1.X
174+
self.tooltip_styles = [] # VERSION ADDED 1.X
175175
self.tooltip_class = None
176176
self.tooltip_class_styles = None
177177
self.set_tooltip_class(name="pd-t", properties=None)
@@ -837,8 +837,8 @@ def set_tooltips(self, ttips: DataFrame):
837837
"""
838838
if not (self.columns.equals(ttips.columns) and self.index.equals(ttips.index)):
839839
raise AttributeError(
840-
"Tooltips DataFrame must have identical column and index labelling"
841-
" to underlying."
840+
"Tooltips DataFrame must have identical column and index labelling "
841+
"to underlying."
842842
)
843843

844844
self.cell_ids = True # tooltips only work with individual cell_ids

0 commit comments

Comments
 (0)