mirror of
https://github.com/sml2h3/ddddocr.git
synced 2025-05-20 18:59:33 +08:00
1.5.3 去掉类型声明以照顾低版本py
This commit is contained in:
parent
eb4babbfac
commit
cd90e06f77
@ -2553,7 +2553,7 @@ class DdddOcr(object):
|
||||
return []
|
||||
return result
|
||||
|
||||
def set_ranges(self, charset_range: int | str):
|
||||
def set_ranges(self, charset_range):
|
||||
if isinstance(charset_range, int):
|
||||
if charset_range == 0:
|
||||
# 数字
|
||||
|
Loading…
Reference in New Issue
Block a user