From 52bc6d93fbcddda8df22cba175b3cca231f465bf Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Sun, 17 Aug 2025 23:56:17 -0600 Subject: [PATCH] fix: Fix Python compatibility checking parameter order issue - Fix get_package_info() call to use keyword argument for use_cache parameter - Resolves 'quote_from_bytes() expected bytes' error caused by passing boolean as version parameter - All 3 occurrences in compatibility_check.py updated --- pypi_query_mcp/tools/compatibility_check.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pypi_query_mcp/tools/compatibility_check.py b/pypi_query_mcp/tools/compatibility_check.py index b559035..3422e9a 100644 --- a/pypi_query_mcp/tools/compatibility_check.py +++ b/pypi_query_mcp/tools/compatibility_check.py @@ -39,7 +39,7 @@ async def check_python_compatibility( try: async with PyPIClient() as client: - package_data = await client.get_package_info(package_name, use_cache) + package_data = await client.get_package_info(package_name, use_cache=use_cache) info = package_data.get("info", {}) requires_python = info.get("requires_python") @@ -103,7 +103,7 @@ async def get_compatible_python_versions( try: async with PyPIClient() as client: - package_data = await client.get_package_info(package_name, use_cache) + package_data = await client.get_package_info(package_name, use_cache=use_cache) info = package_data.get("info", {}) requires_python = info.get("requires_python") @@ -177,7 +177,7 @@ async def suggest_python_version_for_packages( async with PyPIClient() as client: for package_name in package_names: try: - package_data = await client.get_package_info(package_name, use_cache) + package_data = await client.get_package_info(package_name, use_cache=use_cache) info = package_data.get("info", {}) requires_python = info.get("requires_python")