Browse Source

Fix generic alias checks (#172)

Nikhil Rao 2 năm trước cách đây
mục cha
commit
63ec55bdde
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      pynecone/var.py

+ 1 - 1
pynecone/var.py

@@ -619,7 +619,7 @@ class BaseVar(Var, Base):
         Returns:
             The default value of the var.
         """
-        if isinstance(self.type_, _GenericAlias):
+        if utils.is_generic_alias(self.type_):
             type_ = self.type_.__origin__
         else:
             type_ = self.type_