mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-18 03:32:18 +00:00
fix: use corresponding model in Digit and DigitCounter
This commit is contained in:
+2
-2
@@ -325,7 +325,7 @@ class Ocr:
|
|||||||
|
|
||||||
|
|
||||||
class Digit(Ocr):
|
class Digit(Ocr):
|
||||||
def __init__(self, button: ButtonWrapper, lang='en', name=None):
|
def __init__(self, button: ButtonWrapper, lang=None, name=None):
|
||||||
super().__init__(button, lang=lang, name=name)
|
super().__init__(button, lang=lang, name=name)
|
||||||
|
|
||||||
def format_result(self, result) -> int:
|
def format_result(self, result) -> int:
|
||||||
@@ -345,7 +345,7 @@ class Digit(Ocr):
|
|||||||
|
|
||||||
|
|
||||||
class DigitCounter(Ocr):
|
class DigitCounter(Ocr):
|
||||||
def __init__(self, button: ButtonWrapper, lang='en', name=None):
|
def __init__(self, button: ButtonWrapper, lang=None, name=None):
|
||||||
super().__init__(button, lang=lang, name=name)
|
super().__init__(button, lang=lang, name=name)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user