fix(pre_commit): 🎨 auto format pre-commit hooks

This commit is contained in:
pre-commit-ci[bot]
2024-04-24 09:45:47 +00:00
parent 1c27bf7fea
commit 0f6ad236eb
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
from abc import ABC, abstractmethod
from typing import List, Optional, Tuple
from logging import warn
from typing import List, Optional, Tuple
import cv2
import numpy as np
+1 -2
View File
@@ -26,8 +26,7 @@ class Skeleton(Enum):
def resolve_skeleton_by_vertex_count(count: int) -> Optional[List[Tuple[int, int]]]:
for skeleton in Skeleton:
unique_vertices = set(
vertex for edge in skeleton.value for vertex in edge)
unique_vertices = set(vertex for edge in skeleton.value for vertex in edge)
if len(unique_vertices) == count:
return skeleton.value
return None