mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
deprecated all before 3.10
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
# ========================================================================== #
|
||||
|
||||
|
||||
import sys
|
||||
import asyncio
|
||||
import threading
|
||||
import dataclasses
|
||||
@@ -147,8 +146,7 @@ class _DebouncedValue:
|
||||
self.__notifier = notifier
|
||||
self.__loop = loop
|
||||
|
||||
queue_kwargs = ({"loop": loop} if sys.version_info < (3, 10) else {})
|
||||
self.__queue: "asyncio.Queue[bool]" = asyncio.Queue(**queue_kwargs) # type: ignore
|
||||
self.__queue: "asyncio.Queue[bool]" = asyncio.Queue() # type: ignore
|
||||
self.__task = loop.create_task(self.__consumer_task_loop())
|
||||
|
||||
def set(self, value: bool) -> None:
|
||||
|
||||
Reference in New Issue
Block a user