Skip to content

Commit

Permalink
correct type hint, fixes #911
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed May 14, 2023
1 parent 5a9b412 commit 288e2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nicegui/elements/mixins/visibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def backward(x): return x == value
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.
Expand Down

0 comments on commit 288e2f5

Please sign in to comment.