浏览代码

correct type hint, fixes #911

Rodja Trappe 2 年之前
父节点
当前提交
288e2f5d6e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.