fix(pre_commit): 🎨 auto format pre-commit hooks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user