Skip to content

Commit 7e01cc1

Browse files
committed
clean up
1 parent a8502f6 commit 7e01cc1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

jigsawstack/vision.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict, List, Union, cast
1+
from typing import Any, Dict, List, Union, cast, Optional
22
from typing_extensions import NotRequired, TypedDict
33
from typing import Any, Dict, List, cast
44
from typing_extensions import NotRequired, TypedDict
@@ -27,6 +27,10 @@ class OCRResponse(TypedDict):
2727
tags: List[str]
2828
has_text: bool
2929
sections: List[object]
30+
total_pages: Optional[int] # Only available for PDFs
31+
page_ranges: Optional[
32+
List[int]
33+
] # Only available if page_ranges is set in the request parameters.
3034

3135

3236
class Vision(ClientConfig):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="jigsawstack",
9-
version="0.1.26",
9+
version="0.1.27",
1010
description="JigsawStack Python SDK",
1111
long_description=open("README.md", encoding="utf8").read(),
1212
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)