Fix pydantic (#6584)

This commit is contained in:
Nicolas Mowen 2023-05-23 08:00:21 -06:00 committed by GitHub
parent 846a180a7b
commit f66ccb04f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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__)