Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 21, 2024
1 parent 1cf5feb commit 39a1774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion micropip/package_index.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import logging
import string
import sys
import logging
from collections import defaultdict
from collections.abc import Callable, Generator
from dataclasses import dataclass
Expand Down Expand Up @@ -235,6 +235,7 @@ class UnsupportedParserContentTypeError(BaseException):

pass


def _select_parser(content_type: str, pkgname: str) -> Callable[[str], ProjectInfo]:
"""
Select the function to parse the response based on the content type.
Expand Down Expand Up @@ -267,6 +268,7 @@ def _select_parser(content_type: str, pkgname: str) -> Callable[[str], ProjectIn
class IndexMetadataFetchError(BaseException):
pass


async def query_package(
name: str,
fetch_kwargs: dict[str, Any] | None = None,
Expand Down
2 changes: 1 addition & 1 deletion micropip/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ._utils import best_compatible_tag_index, check_compatible
from .constants import FAQ_URLS
from .package import PackageMetadata
from .package_index import ProjectInfo, IndexMetadataFetchError
from .package_index import ProjectInfo
from .wheelinfo import WheelInfo

logger = logging.getLogger("micropip")
Expand Down

0 comments on commit 39a1774

Please sign in to comment.