Skip to content

Commit

Permalink
fix: fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
kimdwkimdw authored Sep 1, 2021
1 parent f2f131d commit e647097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyannote/core/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]:
Expand Down

0 comments on commit e647097

Please sign in to comment.