Parcourir la source

correct type hint, fixes #911

Rodja Trappe il y a 2 ans
Parent
commit
288e2f5d6e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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.