mirror of
https://github.com/macaodha/batdetect2.git
synced 2026-04-04 15:20:19 +02:00
Remove deprecated types
This commit is contained in:
parent
4b7d23abde
commit
e0503487ec
@ -93,7 +93,7 @@ class AOEFLoader(AnnotationLoader):
|
|||||||
|
|
||||||
def load(
|
def load(
|
||||||
self,
|
self,
|
||||||
base_dir: Optional[data.PathLike] = None,
|
base_dir: data.PathLike | None = None,
|
||||||
) -> data.AnnotationSet:
|
) -> data.AnnotationSet:
|
||||||
return load_aoef_annotated_dataset(self.config, base_dir=base_dir)
|
return load_aoef_annotated_dataset(self.config, base_dir=base_dir)
|
||||||
|
|
||||||
|
|||||||
@ -348,7 +348,7 @@ class BatDetect2MergedLoader(AnnotationLoader):
|
|||||||
|
|
||||||
def load(
|
def load(
|
||||||
self,
|
self,
|
||||||
base_dir: Optional[PathLike] = None,
|
base_dir: PathLike | None = None,
|
||||||
) -> data.AnnotationSet:
|
) -> data.AnnotationSet:
|
||||||
return load_batdetect2_merged_annotated_dataset(
|
return load_batdetect2_merged_annotated_dataset(
|
||||||
self.config,
|
self.config,
|
||||||
@ -367,7 +367,7 @@ class BatDetect2FilesLoader(AnnotationLoader):
|
|||||||
|
|
||||||
def load(
|
def load(
|
||||||
self,
|
self,
|
||||||
base_dir: Optional[PathLike] = None,
|
base_dir: PathLike | None = None,
|
||||||
) -> data.AnnotationSet:
|
) -> data.AnnotationSet:
|
||||||
return load_batdetect2_files_annotated_dataset(
|
return load_batdetect2_files_annotated_dataset(
|
||||||
self.config,
|
self.config,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional, Protocol
|
from typing import Protocol
|
||||||
|
|
||||||
from soundevent import data
|
from soundevent import data
|
||||||
|
|
||||||
@ -43,5 +43,5 @@ class AnnotatedDataset(BaseConfig):
|
|||||||
class AnnotationLoader(Protocol):
|
class AnnotationLoader(Protocol):
|
||||||
def load(
|
def load(
|
||||||
self,
|
self,
|
||||||
base_dir: Optional[data.PathLike] = None,
|
base_dir: data.PathLike | None = None,
|
||||||
) -> data.AnnotationSet: ...
|
) -> data.AnnotationSet: ...
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user