mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-18 20:52:17 +00:00
refactor: replace direct import of deque with collections.deque for clarity
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
|
import collections
|
||||||
import sys
|
import sys
|
||||||
from collections import deque
|
|
||||||
|
|
||||||
from module.base.timer import Timer
|
from module.base.timer import Timer
|
||||||
from module.device.app_control import AppControl
|
from module.device.app_control import AppControl
|
||||||
@@ -23,7 +23,7 @@ else:
|
|||||||
class Device(Screenshot, Control, AppControl, Platform):
|
class Device(Screenshot, Control, AppControl, Platform):
|
||||||
_screen_size_checked = False
|
_screen_size_checked = False
|
||||||
detect_record = set()
|
detect_record = set()
|
||||||
click_record = deque(maxlen=15)
|
click_record = collections.deque(maxlen=15)
|
||||||
stuck_timer = Timer(60, count=60).start()
|
stuck_timer = Timer(60, count=60).start()
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user