From f66ccb04f6416c9cd59d1287e179efe30cde0bb5 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 23 May 2023 08:00:21 -0600 Subject: [PATCH] Fix pydantic (#6584) --- frigate/detectors/plugins/cpu_tfl.py | 2 +- frigate/detectors/plugins/deepstack.py | 2 +- frigate/detectors/plugins/edgetpu_tfl.py | 2 +- frigate/detectors/plugins/openvino.py | 2 +- frigate/detectors/plugins/tensorrt.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frigate/detectors/plugins/cpu_tfl.py b/frigate/detectors/plugins/cpu_tfl.py index b22ac9a54..a831a9190 100644 --- a/frigate/detectors/plugins/cpu_tfl.py +++ b/frigate/detectors/plugins/cpu_tfl.py @@ -3,7 +3,7 @@ import numpy as np from frigate.detectors.detection_api import DetectionApi from frigate.detectors.detector_config import BaseDetectorConfig -from typing import Literal +from typing_extensions import Literal from pydantic import Extra, Field try: diff --git a/frigate/detectors/plugins/deepstack.py b/frigate/detectors/plugins/deepstack.py index 9f3d323a2..2a9024a49 100644 --- a/frigate/detectors/plugins/deepstack.py +++ b/frigate/detectors/plugins/deepstack.py @@ -5,7 +5,7 @@ import io from frigate.detectors.detection_api import DetectionApi from frigate.detectors.detector_config import BaseDetectorConfig -from typing import Literal +from typing_extensions import Literal from pydantic import Extra, Field from PIL import Image diff --git a/frigate/detectors/plugins/edgetpu_tfl.py b/frigate/detectors/plugins/edgetpu_tfl.py index 6837adcb0..d671dea4d 100644 --- a/frigate/detectors/plugins/edgetpu_tfl.py +++ b/frigate/detectors/plugins/edgetpu_tfl.py @@ -3,7 +3,7 @@ import numpy as np from frigate.detectors.detection_api import DetectionApi from frigate.detectors.detector_config import BaseDetectorConfig -from typing import Literal +from typing_extensions import Literal from pydantic import Extra, Field try: diff --git a/frigate/detectors/plugins/openvino.py b/frigate/detectors/plugins/openvino.py index 993b2b8ff..fe87ac567 100644 --- a/frigate/detectors/plugins/openvino.py +++ b/frigate/detectors/plugins/openvino.py @@ -4,7 +4,7 @@ import openvino.runtime as ov from frigate.detectors.detection_api import DetectionApi from frigate.detectors.detector_config import BaseDetectorConfig, ModelTypeEnum -from typing import Literal +from typing_extensions import Literal from pydantic import Extra, Field diff --git a/frigate/detectors/plugins/tensorrt.py b/frigate/detectors/plugins/tensorrt.py index 2d2a6788f..ac0c4befc 100644 --- a/frigate/detectors/plugins/tensorrt.py +++ b/frigate/detectors/plugins/tensorrt.py @@ -13,7 +13,7 @@ except ModuleNotFoundError as e: from frigate.detectors.detection_api import DetectionApi from frigate.detectors.detector_config import BaseDetectorConfig -from typing import Literal +from typing_extensions import Literal from pydantic import Field logger = logging.getLogger(__name__)