Browse Source

correct type hint, fixes #911

Rodja Trappe 2 năm trước cách đây
mục cha
commit
288e2f5d6e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      nicegui/elements/mixins/visibility.py

+ 1 - 1
nicegui/elements/mixins/visibility.py

@@ -70,7 +70,7 @@ class Visibility:
         bind(self, 'visible', target_object, target_name, forward=forward, backward=backward)
         return self
 
-    def set_visibility(self, visible: str) -> None:
+    def set_visibility(self, visible: bool) -> None:
         """Set the visibility of this element.
 
         :param visible: Whether the element should be visible.