Falko Schindler преди 2 години
родител
ревизия
ab6a50adcc
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      tests/test_element.py

+ 0 - 3
tests/test_element.py

@@ -130,11 +130,8 @@ def test_remove_and_clear(screen: Screen):
 
 def test_setting_visibility_in_timer(screen: Screen):
     '''reproduction of https://github.com/zauberzeug/nicegui/issues/206'''
-    label: ui.label = None
-
     @ui.page('/')
     def page():
-        nonlocal label
         label = ui.label('Some Label')
         ui.timer(1, lambda: label.set_visibility(False))