From 222a0c3280b2d1bf5ff05a148bd62b38ca4269bb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Mar 2024 01:03:11 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- matplotlib_pyodide/browser_backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matplotlib_pyodide/browser_backend.py b/matplotlib_pyodide/browser_backend.py index ca681dd..a135846 100644 --- a/matplotlib_pyodide/browser_backend.py +++ b/matplotlib_pyodide/browser_backend.py @@ -189,11 +189,11 @@ def ignore(event): div.appendChild(bottom) self.draw() - + def destroy(self, *args, **kwargs): div = document.getElementById(self._id) parentElement = div.parentNode - if parentElement: + if parentElement: parentElement.removeChild(div) div.removeChild(div.firstChild)