From 620a3f2dc4a305143fad54edff16eaa2a59babe6 Mon Sep 17 00:00:00 2001 From: thomasscheer <144932400+thomasscheer@users.noreply.github.com> Date: Thu, 27 Nov 2025 11:31:31 +0100 Subject: [PATCH] Update package_data.py Fix Issue 240 --- src/python_inspector/package_data.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python_inspector/package_data.py b/src/python_inspector/package_data.py index 6b0a9733..936be721 100644 --- a/src/python_inspector/package_data.py +++ b/src/python_inspector/package_data.py @@ -122,6 +122,8 @@ async def get_pypi_data_from_purl( def choose_single_wheel(wheel_urls: List[str]) -> Optional[str]: + # fix Issue 240 - TypeError: '<' not supported between instances of 'str' and 'NoneType' + wheel_urls = [url for url in wheel_urls if url is not None] """ Sort wheel urls descendingly and return the first one """