Skip to content

Commit

Permalink
# type: ignore[attr-defined]
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Dec 14, 2023
1 parent c90d323 commit 86309ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion altair/vegalite/v5/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def jupyter_renderer(spec: dict):
"""Render chart using the JupyterChart Jupyter Widget"""
from altair import Chart, JupyterChart

return JupyterChart(chart=Chart.from_dict(spec))._repr_mimebundle_()
# Need to ignore attr-defined mypy rule because mypy doesn't see _repr_mimebundle_
# conditionally defined in AnyWidget
return JupyterChart(chart=Chart.from_dict(spec))._repr_mimebundle_() # type: ignore[attr-defined]


html_renderer = HTMLRenderer(
Expand Down

0 comments on commit 86309ac

Please sign in to comment.