Răsfoiți Sursa

code review

Falko Schindler 2 ani în urmă
părinte
comite
ab6a50adcc
1 a modificat fișierele cu 0 adăugiri și 3 ștergeri
  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):
 def test_setting_visibility_in_timer(screen: Screen):
     '''reproduction of https://github.com/zauberzeug/nicegui/issues/206'''
     '''reproduction of https://github.com/zauberzeug/nicegui/issues/206'''
-    label: ui.label = None
-
     @ui.page('/')
     @ui.page('/')
     def page():
     def page():
-        nonlocal label
         label = ui.label('Some Label')
         label = ui.label('Some Label')
         ui.timer(1, lambda: label.set_visibility(False))
         ui.timer(1, lambda: label.set_visibility(False))