refactor!: replace attrs with dataclass

This commit is contained in:
2025-06-17 18:05:44 +08:00
parent 619bff2ea4
commit 2264e90b8e
3 changed files with 4 additions and 7 deletions

View File

@ -1,3 +1,2 @@
attrs==23.1.0
numpy==1.26.1 numpy==1.26.1
opencv-python==4.8.1.78 opencv-python==4.8.1.78

View File

@ -1,10 +1,9 @@
from dataclasses import dataclass
from datetime import datetime from datetime import datetime
from typing import Optional from typing import Optional
import attrs
@dataclass
@attrs.define
class B30OcrResultItem: class B30OcrResultItem:
rating_class: int rating_class: int
score: int score: int

View File

@ -1,9 +1,8 @@
from dataclasses import dataclass
from typing import Optional from typing import Optional
import attrs
@dataclass
@attrs.define
class DeviceOcrResult: class DeviceOcrResult:
rating_class: int rating_class: int
pure: int pure: int