浏览代码

Fixed pc.html to accept state var. (#775)

Alek Petuskey 2 年之前
父节点
当前提交
bd6ea9d977
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      pynecone/components/layout/html.py

+ 2 - 3
pynecone/components/layout/html.py

@@ -1,9 +1,8 @@
 """A html component."""
 
-from typing import Dict
+from typing import Any
 
 from pynecone.components.layout.box import Box
-from pynecone.var import Var
 
 
 class Html(Box):
@@ -14,7 +13,7 @@ class Html(Box):
     """
 
     # The HTML to render.
-    dangerouslySetInnerHTML: Var[Dict]
+    dangerouslySetInnerHTML: Any
 
     @classmethod
     def create(cls, *children, **props):