{"id":"bdf7c08bf144d998","repo":"pypa/pip","slug":"e-args-0","errorCode":null,"errorMessage":"{e.args[0]}","messagePattern":"\\{e\\.args\\[0\\]\\}","errorType":"validation","errorClass":"InvalidWheelFilename","httpStatus":null,"severity":"error","filePath":"src/pip/_internal/models/wheel.py","lineNumber":27,"sourceCode":"from pip._vendor.packaging.tags import Tag\nfrom pip._vendor.packaging.utils import (\n    InvalidWheelFilename as _PackagingInvalidWheelFilename,\n)\nfrom pip._vendor.packaging.utils import parse_wheel_filename\n\nfrom pip._internal.exceptions import InvalidWheelFilename\n\n\nclass Wheel:\n    \"\"\"A wheel file\"\"\"\n\n    def __init__(self, filename: str) -> None:\n        self.filename = filename\n\n        try:\n            wheel_info = parse_wheel_filename(filename)\n        except _PackagingInvalidWheelFilename as e:\n            raise InvalidWheelFilename(e.args[0]) from None\n\n        self.name, _version, self.build_tag, self.file_tags = wheel_info\n        self.version = str(_version)\n\n    def get_formatted_file_tags(self) -> list[str]:\n        \"\"\"Return the wheel's tags as a sorted list of strings.\"\"\"\n        return sorted(str(tag) for tag in self.file_tags)\n\n    def support_index_min(self, tags: list[Tag]) -> int:\n        \"\"\"Return the lowest index that one of the wheel's file_tag combinations\n        achieves in the given list of supported tags.\n\n        For example, if there are 8 supported tags and one of the file tags\n        is first in the list, then return 0.\n\n        :param tags: the PEP 425 tags to check the wheel against, in order\n            with most preferred first.\n","sourceCodeStart":9,"sourceCodeEnd":45,"githubUrl":"https://github.com/pypa/pip/blob/d7d0d0a39494e28ec1c407bd0680e4a4d1067791/src/pip/_internal/models/wheel.py#L9-L45","documentation":"Error \"{e.args[0]}\" thrown in pypa/pip.","triggerScenarios":"Thrown at src/pip/_internal/models/wheel.py:27 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"d7d0d0a39494e28ec1c407bd0680e4a4d1067791","analyzedAt":"2026-08-04T20:55:04.259Z","schemaVersion":2}