[pypi] Fix yank condition lint

This commit is contained in:
Nemo
2025-08-28 23:52:57 +05:30
committed by GitHub
parent 29b8bc46bb
commit e0a2812a78

View File

@@ -9,7 +9,7 @@ with ProductData(config.product) as product_data:
version_match = config.first_match(version_str)
version_data = data["releases"][version_str]
if version_match and version_data and version_data[0]['yanked'] == False:
if version_match and version_data and not version_data[0]['yanked']:
version = config.render(version_match)
date = dates.parse_datetime(version_data[0]["upload_time_iso_8601"])
product_data.declare_version(version, date)