From ed2d176d067add6f2625bd8fe350ad52f95303c7 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Wed, 14 Feb 2024 06:55:00 -0800 Subject: [PATCH] Added version check --- scripts/get_latest_pypi_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_latest_pypi_version.py b/scripts/get_latest_pypi_version.py index e391318..31a5cc4 100644 --- a/scripts/get_latest_pypi_version.py +++ b/scripts/get_latest_pypi_version.py @@ -13,7 +13,7 @@ VERSION_INFO_URL = "https://pypi.org/pypi/{}/json" -def get_latest_version(package_name: str) -> str | None: +def get_latest_version(package_name: str) -> str: """Get latest version of package_name from PyPI""" try: url = VERSION_INFO_URL.format(package_name)