Skip to content

Commit 9306864

Browse files
committed
Type ignore _side_expander calls in CSSResolver
_side_expander is used only during CSSResolver initalization, and Mypy confuses it with a standard method.
1 parent bee17d5 commit 9306864

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/io/formats/css.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ def expand(self, prop, value):
229229

230230
return expand
231231

232-
expand_border_color = _side_expander("border-{:s}-color")
233-
expand_border_style = _side_expander("border-{:s}-style")
234-
expand_border_width = _side_expander("border-{:s}-width")
235-
expand_margin = _side_expander("margin-{:s}")
236-
expand_padding = _side_expander("padding-{:s}")
232+
expand_border_color = _side_expander("border-{:s}-color") # type: ignore
233+
expand_border_style = _side_expander("border-{:s}-style") # type: ignore
234+
expand_border_width = _side_expander("border-{:s}-width") # type: ignore
235+
expand_margin = _side_expander("margin-{:s}") # type: ignore
236+
expand_padding = _side_expander("padding-{:s}") # type: ignore
237237

238238
def parse(self, declarations_str):
239239
"""Generates (prop, value) pairs from declarations

0 commit comments

Comments
 (0)