forked from pyannote/pyannote-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use overloads to properly type itertracks
Add overloads for itertracks so that its return type is properly reflected when passed literal True or False (or nothing). Previously, when type checking for segment, track_name, label in annotation.itertracks(yield_label=True): ... the type checker would complain that the iterator could contain 2-tuples. A similar issue existed when passing False.
- Loading branch information
Showing
2 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters