diff --git a/calcipy/check_for_stale_packages/_check_for_stale_packages.py b/calcipy/check_for_stale_packages/_check_for_stale_packages.py index a17cd8f3..7d4672b5 100644 --- a/calcipy/check_for_stale_packages/_check_for_stale_packages.py +++ b/calcipy/check_for_stale_packages/_check_for_stale_packages.py @@ -213,7 +213,8 @@ def format_package(pack: _HostedPythonPackage) -> str: logger.warning('Found stale packages that may be a dependency risk', stale_list=stale_list) return True if packages: - oldest_date = np.amin([pack.datetime for pack in packages]) # pyright: ignore[reportGeneralTypeIssues] + datetime_array = np.asarray([pack.datetime for pack in packages]) + oldest_date = np.amin(datetime_array) logger.text('No stale packages found', oldest=oldest_date.humanize(), stale_threshold=stale_months) return False