WheelDistribution doesn't implement abstract methods of importlib.metadata.Distribution #11684
Open
1 task done
Labels
state: needs eyes
Needs a maintainer/triager to take a closer look
type: maintenance
Related to Development and Maintenance Processes
Description
In python/cpython#100466, we learned that pip implements a
WheelDistribution
derived fromimportlib.metadata.Distribution
, but doesn't implement the abstract methods. This usage was allowed because the ABC didn't derive from abc.ABCMeta. I don't recall if that choice was intentional or not, but attempting to enforce the definition of abstract methods in subclasses breaks pip invocations.Expected behavior
Pip should implement the abstract methods (even if just trivially).
pip version
22.3.1
Python version
3.12a3ish
OS
all
How to Reproduce
Apply the patch from the referenced Python PR to the Python stdlib and invoke pip install.
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: