Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 committed Sep 19, 2024
1 parent cd1ae53 commit 7a5207f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions micropip/types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Destribution Metadata type (PEP 658)
# Distribution Metadata type (PEP 658)
# None = metadata not available
# bool = metadata available, but no checksum
# dict[str, str] = metadata available with checksum
DistributionMetadata = bool | dict[str, str] | None
DistributionMetadata = bool | dict[str, str] | None
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def add_wheel(self, path: Path, replace: bool = True):
return

self._wheels[name] = self.Wheel(
path, name, version, path.name, name.replace("-", "_"), url
path, name, str(version), path.name, name.replace("-", "_"), url
)

def get(self, name: str) -> Wheel:
Expand Down
7 changes: 4 additions & 3 deletions tests/test_wheelinfo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
from packaging.utils import parse_wheel_filename

from micropip.wheelinfo import WheelInfo

Expand All @@ -25,7 +24,9 @@ def test_from_package_index():
size = 1234
data_dist_info_metadata = True

wheel = WheelInfo.from_package_index(name, filename, url, version, sha256, size, data_dist_info_metadata)
wheel = WheelInfo.from_package_index(
name, filename, url, version, sha256, size, data_dist_info_metadata
)

assert wheel.name == name
assert str(wheel.version) == version
Expand Down Expand Up @@ -186,4 +187,4 @@ async def test_download_pep658_metadata_checksum(wheel_catalog):

assert wheel._metadata is None
await wheel.download_pep658_metadata({})
assert wheel._metadata is not None
assert wheel._metadata is not None

0 comments on commit 7a5207f

Please sign in to comment.