Skip to content

Commit

Permalink
mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Apr 12, 2024
1 parent 180f93c commit 31bee25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doctr/models/predictor/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This program is licensed under the Apache License 2.0.
# See LICENSE or go to <https://opensource.org/licenses/Apache-2.0> for full license details.

from typing import Any, Callable, Dict, List, Optional, Tuple, Union
from typing import Any, Callable, Dict, List, Optional, Tuple

import numpy as np

Expand Down Expand Up @@ -147,7 +147,7 @@ def _process_predictions(
loc_preds: List[np.ndarray],
word_preds: List[Tuple[str, float]],
crop_orientations: List[Dict[str, Any]],
) -> Tuple[List[np.ndarray], List[List[Tuple[str, float]]], List[List[Union[Tuple[str, float], Dict[str, Any]]]]]:
) -> Tuple[List[np.ndarray], List[List[Tuple[str, float]]], List[List[Dict[str, Any]]]]:
text_preds = []
crop_orientation_preds = []
if len(loc_preds) > 0:
Expand Down

0 comments on commit 31bee25

Please sign in to comment.