Skip to content

Commit f6f370e

Browse files
fix(types): response for bounds is now optional under ocr
1 parent 3cd055c commit f6f370e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jigsawstack/vision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ class VOCRParams(TypedDict):
162162

163163
class Word(TypedDict):
164164
text: str
165-
bounds: BoundingBox
165+
bounds: NotRequired[BoundingBox] # omitted when return_bounds is false
166166
confidence: float
167167

168168

169169
class Line(TypedDict):
170170
text: str
171-
bounds: BoundingBox
171+
bounds: NotRequired[BoundingBox] # omitted when return_bounds is false
172172
average_confidence: float
173173
words: List[Word]
174174

0 commit comments

Comments
 (0)