Skip to content

Commit 58059c1

Browse files
authored
mypy fix (#43356)
Co-authored-by: JHM Darbyshire (iMac) <[email protected]>
1 parent 074ef63 commit 58059c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/formats/style.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def __init__(
231231
thousands=thousands,
232232
)
233233

234-
def _repr_html_(self) -> str:
234+
def _repr_html_(self) -> str | None:
235235
"""
236236
Hooks into Jupyter notebook rich display system, which calls _repr_html_ by
237237
default if an object is returned at the end of a cell.
@@ -240,7 +240,7 @@ def _repr_html_(self) -> str:
240240
return self.to_html()
241241
return None
242242

243-
def _repr_latex_(self) -> str:
243+
def _repr_latex_(self) -> str | None:
244244
if get_option("styler.render.repr") == "latex":
245245
return self.to_latex()
246246
return None

0 commit comments

Comments
 (0)