Skip to content

Commit

Permalink
Moves TYPE_CHECKING import to align with conditional type checking …
Browse files Browse the repository at this point in the history
…usage.
  • Loading branch information
Paethon committed Oct 28, 2024
1 parent 5d7a21d commit 30f0ee9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ocr_wrapper/google_document_ocr_checkbox_detector.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
from __future__ import annotations

import os
from typing import Optional, Union
from typing import TYPE_CHECKING, Optional, Union

from PIL import Image

import ocr_wrapper
from ocr_wrapper import BBox

from .utils import resize_image
from typing import TYPE_CHECKING

# Load the Google Cloud Document AI client library globally only for type checking (needed for argument types)
if TYPE_CHECKING:
Expand Down

0 comments on commit 30f0ee9

Please sign in to comment.