5
0
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:
sml2h3 2024-05-06 17:35:50 +08:00
parent eb4babbfac
commit cd90e06f77
2 changed files with 2 additions and 2 deletions

View File

@ -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:
# 数字

View File

@ -14,7 +14,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setup(
name="ddddocr",
version="1.5.2",
version="1.5.3",
author="sml2h3",
description="带带弟弟OCR",
long_description=long_description,