Skip to content

Commit

Permalink
TYP: Fix typing failure for ipython config
Browse files Browse the repository at this point in the history
Caught by GHA because traitlets got better at typing.
  • Loading branch information
has2k1 committed Dec 15, 2023
1 parent e9df391 commit e462b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plotnine/ggplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ def _enter_ipython(self):
return

for key, value in self._IPYTHON_CONFIG["InlineBackend"].items():
if key not in ip.config.InlineBackend: # pyright: ignore
if key not in ip.config.InlineBackend:
self._ip_config_inlinebackend[key] = key
ip.run_line_magic("config", f"InlineBackend.{key} = {value!r}")

Expand All @@ -855,6 +855,6 @@ def _exit_ipython(self):
return

for key in self._ip_config_inlinebackend:
del ip.config["InlineBackend"][key] # pyright: ignore
del ip.config["InlineBackend"][key]

self._ip_config_inlinebackend = {}

0 comments on commit e462b3a

Please sign in to comment.