Remove deprecated types

This commit is contained in:
mbsantiago 2026-03-15 21:17:20 +00:00
parent 4b7d23abde
commit e0503487ec
3 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ class AOEFLoader(AnnotationLoader):
def load(
self,
base_dir: Optional[data.PathLike] = None,
base_dir: data.PathLike | None = None,
) -> data.AnnotationSet:
return load_aoef_annotated_dataset(self.config, base_dir=base_dir)

View File

@ -348,7 +348,7 @@ class BatDetect2MergedLoader(AnnotationLoader):
def load(
self,
base_dir: Optional[PathLike] = None,
base_dir: PathLike | None = None,
) -> data.AnnotationSet:
return load_batdetect2_merged_annotated_dataset(
self.config,
@ -367,7 +367,7 @@ class BatDetect2FilesLoader(AnnotationLoader):
def load(
self,
base_dir: Optional[PathLike] = None,
base_dir: PathLike | None = None,
) -> data.AnnotationSet:
return load_batdetect2_files_annotated_dataset(
self.config,

View File

@ -1,5 +1,5 @@
from pathlib import Path
from typing import Optional, Protocol
from typing import Protocol
from soundevent import data
@ -43,5 +43,5 @@ class AnnotatedDataset(BaseConfig):
class AnnotationLoader(Protocol):
def load(
self,
base_dir: Optional[data.PathLike] = None,
base_dir: data.PathLike | None = None,
) -> data.AnnotationSet: ...