Skip to content

Commit 1f8a2f2

Browse files
committed
The 'metadata_encoding' thing is wrong, revert it and silence mypy
1 parent 19b5dcc commit 1f8a2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pypi_browser/packaging.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ async def entries(self) -> typing.Set[PackageEntry]:
128128
@contextlib.asynccontextmanager
129129
async def open_from_archive(self, path: str) -> typing.AsyncIterator[AsyncArchiveFile]:
130130
if self.package_format is PackageFormat.ZIPFILE:
131-
zf = await asyncio.to_thread(zipfile.ZipFile, self.path, metadata_encoding=None)
131+
zf = await asyncio.to_thread(zipfile.ZipFile, self.path) # type: ignore
132132
try:
133133
zip_archive_file = await asyncio.to_thread(zf.open, path)
134134
async with AsyncArchiveFile(zip_archive_file) as wrapped:

0 commit comments

Comments
 (0)