safe refactoring (#2552)

Co-authored-by: YS <ys@gm.com>
This commit is contained in:
Yuriy Sannikov
2021-12-31 20:59:43 +03:00
committed by Blake Blackshear
parent 9e987fdebc
commit 80627e4989
7 changed files with 36 additions and 36 deletions

View File

@@ -13,8 +13,7 @@ from pydantic import BaseModel, Extra, Field, validator
from pydantic.fields import PrivateAttr
from frigate.const import BASE_DIR, CACHE_DIR, YAML_EXT
from frigate.edgetpu import load_labels
from frigate.util import create_mask, deep_merge
from frigate.util import create_mask, deep_merge, load_labels
logger = logging.getLogger(__name__)
@@ -640,7 +639,7 @@ class ModelConfig(FrigateBaseModel):
return self._merged_labelmap
@property
def colormap(self) -> Dict[int, tuple[int, int, int]]:
def colormap(self) -> Dict[int, Tuple[int, int, int]]:
return self._colormap
def __init__(self, **config):