From b83fb5126e158e76294faaa5231f426731486fc0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 04:54:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- micropip/package_index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/micropip/package_index.py b/micropip/package_index.py index 6bd2573..49974b7 100644 --- a/micropip/package_index.py +++ b/micropip/package_index.py @@ -155,9 +155,9 @@ def _compatible_wheels( sha256 = hashes.get("sha256") # Check if the metadata file is available (PEP 658 / PEP-714) - core_metadata: DistributionMetadata = file.get( - "core-metadata" - ) or file.get("data-dist-info-metadata") + core_metadata: DistributionMetadata = file.get("core-metadata") or file.get( + "data-dist-info-metadata" + ) # Size of the file in bytes, if available (PEP 700) # This key is not available in the Simple API HTML response, so this field may be None