From 251800d9e735930026a700147bdee9bdc8f5d3a8 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 20 May 2024 11:34:55 -0400 Subject: [PATCH] fix: typo in "isinstance" in Element.snap. --- pyscript.core/src/stdlib/pyweb/pydom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyscript.core/src/stdlib/pyweb/pydom.py b/pyscript.core/src/stdlib/pyweb/pydom.py index 6a2a4289..0e728674 100644 --- a/pyscript.core/src/stdlib/pyweb/pydom.py +++ b/pyscript.core/src/stdlib/pyweb/pydom.py @@ -267,7 +267,7 @@ class Element(BaseElement): canvas._js.width = width canvas._js.height = height - elif isistance(to, Element): + elif isinstance(to, Element): if to._js.tagName != "CANVAS": raise TypeError("Element to snap to must a canvas.") canvas = to