diff --git a/src/neuroconv/tools/path_expansion.py b/src/neuroconv/tools/path_expansion.py index 9a085c7ba..4ab839c0f 100644 --- a/src/neuroconv/tools/path_expansion.py +++ b/src/neuroconv/tools/path_expansion.py @@ -143,7 +143,7 @@ class LocalPathExpander(AbstractPathExpander): See https://neuroconv.readthedocs.io/en/main/user_guide/expand_path.html for more information. """ - def list_directory(self, base_directory: DirectoryPath) -> Iterable[FilePath]: # noqa: D101,D102 + def list_directory(self, base_directory: DirectoryPath) -> Iterable[FilePath]: # noqa: D101 base_directory = Path(base_directory) assert base_directory.is_dir(), f"The specified 'base_directory' ({base_directory}) is not a directory!" return (str(path.relative_to(base_directory)) for path in base_directory.rglob("*"))