Ver código fonte

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

Alek Petuskey 2 anos atrás
pai
commit
bd6ea9d977
1 arquivos alterados com 2 adições e 3 exclusões
  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):