Skip to content

Commit

Permalink
Added version check
Browse files Browse the repository at this point in the history
  • Loading branch information
RhetTbull committed Feb 14, 2024
1 parent b2844ef commit ed2d176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get_latest_pypi_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed2d176

Please sign in to comment.