Skip to content

Commit

Permalink
fix mypy linting problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jandom committed Sep 7, 2024
1 parent 0e2a673 commit c9d92e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/qreader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,12 @@ def decode(

def detect_and_decode(
self, image: np.ndarray, return_detections: bool = False, is_bgr: bool = False
) -> typing.Tuple[
) -> typing.Union[
typing.Tuple[
typing.Tuple[str | None, ...],
tuple[dict[str, np.ndarray | float | tuple[float | int, float | int]]] | None,
],
typing.Tuple[str | None, ...],
tuple[dict[str, np.ndarray | float | tuple[float | int, float | int]]] | None,
]:
"""
This method will decode the **QR** codes in the given image and return the decoded strings
Expand Down

0 comments on commit c9d92e6

Please sign in to comment.