Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:pyannote/pyannote-database into …
Browse files Browse the repository at this point in the history
…develop
  • Loading branch information
hbredin committed Jan 15, 2025
2 parents 8d0ecec + f6c9129 commit 9946e94
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions pyannote/database/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,18 @@
from .loader import load_lst, load_trial

# All "Loader" classes types (eg RTTMLoader, UEMLoader, ...) retrieved from the entry point.
LOADERS = {
ep.name: ep
for ep in entry_points(group="pyannote.database.loader")
}
try:
# Python >= 3.10 style
LOADERS = {
ep.name: ep
for ep in entry_points(group="pyannote.database.loader")
}
except TypeError:
# Python < 3.10 style
LOADERS = {
ep.name: ep
for ep in entry_points().get("pyannote.database.loader", [])
}


def Template(template: Text, database_yml: Path) -> Callable[[ProtocolFile], Any]:
Expand Down

0 comments on commit 9946e94

Please sign in to comment.