From 46c824d0fba96038198bc8ce70ccc96f4fee75c5 Mon Sep 17 00:00:00 2001 From: Vince Reuter Date: Fri, 19 Apr 2024 19:44:11 +0200 Subject: [PATCH] fix return type in multipath-by-FOV finder --- CHANGELOG.md | 5 +++++ gertils/pathtools.py | 4 ++-- pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d98ca3..e469d28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v0.4.4] - 2024-04-19 + +### Fixed +* Fix the return type in signature of `find_multiple_paths_by_fov`. + ## [v0.4.3] - 2024-04-19 ### Added diff --git a/gertils/pathtools.py b/gertils/pathtools.py index d518012..cae714d 100644 --- a/gertils/pathtools.py +++ b/gertils/pathtools.py @@ -84,10 +84,10 @@ def _invalidate(self) -> None: ) def find_multiple_paths_by_fov( # noqa: D103 folder: PathLike, *, extensions: Iterable[str] -) -> dict[str, list[Path]]: +) -> dict[FieldOfViewFrom1, list[Path]]: if isinstance(folder, str): folder = Path(folder) - paths: dict[str, list[Path]] = {} + paths: dict[FieldOfViewFrom1, list[Path]] = {} for fn in os.listdir(folder): fp = folder / fn for ext in extensions: diff --git a/pyproject.toml b/pyproject.toml index 845f6ec..81d3ae3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "gertils" -version = "0.4.3" +version = "0.4.4" description = "General computing utilities for data processing and analysis in the Gerlich group at IMBA" authors = [ "Vince Reuter ",