Skip to content

Commit

Permalink
ci: fix type issue in np.amin
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Feb 1, 2024
1 parent b01f309 commit 628fd77
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 628fd77

Please sign in to comment.