浏览代码

code review

Falko Schindler 3 年之前
父节点
当前提交
7e0c11cc09
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 0 1
      nicegui/nicegui.py
  2. 2 1
      nicegui/timer.py

+ 0 - 1
nicegui/nicegui.py

@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
 #!/usr/bin/env python3
-from collections import namedtuple
 from typing import Awaitable, Callable
 from typing import Awaitable, Callable
 import asyncio
 import asyncio
 
 

+ 2 - 1
nicegui/timer.py

@@ -2,12 +2,13 @@ import asyncio
 import time
 import time
 import traceback
 import traceback
 from typing import Awaitable, Callable, List, Union
 from typing import Awaitable, Callable, List, Union
+from collections import namedtuple
 
 
 from .binding import BindableProperty
 from .binding import BindableProperty
 from .globals import tasks, view_stack
 from .globals import tasks, view_stack
-from collections import namedtuple
 
 
 NamedCoroutine = namedtuple('NamedCoroutine', ['name', 'coro'])
 NamedCoroutine = namedtuple('NamedCoroutine', ['name', 'coro'])
+
 class Timer:
 class Timer:
     prepared_coroutines: List[NamedCoroutine] = []
     prepared_coroutines: List[NamedCoroutine] = []