diff --git a/src/letsbuilda/pypi/async_client.py b/src/letsbuilda/pypi/async_client.py index 3c92b02..ae6ace0 100644 --- a/src/letsbuilda/pypi/async_client.py +++ b/src/letsbuilda/pypi/async_client.py @@ -53,7 +53,7 @@ async def get_package_metadata( package_version: str | None = None, ) -> Package: """Get metadata for a package.""" - return Package.from_dict(await self.get_package_json_metadata(package_title, package_version)) + return Package.from_json_api_data(await self.get_package_json_metadata(package_title, package_version)) async def fetch_bytes( self: Self,