Skip to content

Commit

Permalink
Remove invalid 3.8 union types
Browse files Browse the repository at this point in the history
  • Loading branch information
PSU3D0 committed Jul 1, 2024
1 parent efa6b1a commit 7bddb11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docprompt/tasks/ocr/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ def process_document_node(
self,
document_node: "DocumentNode",
task_config: None = None,
start: int | None = None,
stop: int | None = None,
start: Optional[int] = None,
stop: Optional[int] = None,
contribute_to_document: bool = True,
**kwargs,
) -> Dict[int, OcrPageResult]:
Expand Down
4 changes: 2 additions & 2 deletions docprompt/tasks/ocr/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@ def process_document_node(
self,
document_node: "DocumentNode",
task_config: None = None,
start: int | None = None,
stop: int | None = None,
start: Optional[int] = None,
stop: Optional[int] = None,
contribute_to_document: bool = True,
**kwargs,
) -> Dict[int, OcrPageResult]:
Expand Down
6 changes: 3 additions & 3 deletions docprompt/tasks/ocr/tesseract.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import multiprocessing as mp
import tempfile
from concurrent.futures import ProcessPoolExecutor
from typing import TYPE_CHECKING, Dict, List
from typing import TYPE_CHECKING, Dict, List, Optional

from pydantic import BaseModel

Expand Down Expand Up @@ -154,8 +154,8 @@ def process_document_node(
self,
document_node: "DocumentNode",
task_config: None = None,
start: int | None = None,
stop: int | None = None,
start: Optional[int] = None,
stop: Optional[int] = None,
contribute_to_document: bool = True,
**kwargs,
) -> Dict[int, OcrPageResult]:
Expand Down

0 comments on commit 7bddb11

Please sign in to comment.