mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
linting
This commit is contained in:
parent
5c044fb853
commit
44f90d42f8
3 changed files with 9 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Iterable
|
||||
from typing import Any, Iterable
|
||||
|
||||
import numpy as np
|
||||
import numpy.typing as npt
|
||||
|
|
@ -20,8 +20,8 @@ class TextRecognitionOutput(TypedDict):
|
|||
|
||||
|
||||
# RapidOCR expects `engine_type`, `lang_type`, and `font_path` to be attributes
|
||||
class OcrOptions(dict):
|
||||
def __init__(self, **options):
|
||||
class OcrOptions(dict[str, Any]):
|
||||
def __init__(self, **options: Any) -> None:
|
||||
super().__init__(**options)
|
||||
self.engine_type = EngineType.ONNXRUNTIME
|
||||
self.lang_type = LangRec.CH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue