diff --git a/pyannote/core/feature.py b/pyannote/core/feature.py index f0e487a..cf8ab52 100755 --- a/pyannote/core/feature.py +++ b/pyannote/core/feature.py @@ -40,7 +40,7 @@ import numpy as np -from pyannote.core.utils.types import CropMode +from pyannote.core.utils.types import Alignment from .segment import Segment from .segment import SlidingWindow from .timeline import Timeline @@ -134,7 +134,7 @@ def iterfeatures( def crop( self, focus: Union[Segment, Timeline], - mode: CropMode = "loose", + mode: Alignment = "loose", fixed: Optional[float] = None, return_data: bool = True, ) -> Union[np.ndarray, "SlidingWindowFeature"]: