Stubsabot: Fix incorrect diff link when a py.typed was added in a micro version (#10375)

This commit is contained in:
Alex Waygood
2023-06-28 10:48:11 +01:00
committed by GitHub
parent d5f0d155d1
commit 7289fb9f77

View File

@@ -298,7 +298,7 @@ async def get_diff_info(
return None
try:
old_version = max(version for version in versions_to_tags if version in curr_specifier)
old_version = max(version for version in versions_to_tags if version in curr_specifier and version < pypi_version)
except ValueError:
return None
else: