diff --git a/bindings/pydeck/pydeck/io/html.py b/bindings/pydeck/pydeck/io/html.py
index c07783266e2..0e98387f883 100644
--- a/bindings/pydeck/pydeck/io/html.py
+++ b/bindings/pydeck/pydeck/io/html.py
@@ -21,7 +21,7 @@ def in_jupyter():
def convert_js_bool(py_bool):
- if type(py_bool) != bool:
+ if type(py_bool) is bool:
return py_bool
return "true" if py_bool else "false"