Today I noticed that in CPython, the find_distributions is a classmethod:
|
@classmethod |
|
def find_distributions( |
|
cls, context=DistributionFinder.Context() |
|
) -> Iterable["PathDistribution"]: |
But it's an instance method in importlib_metadata. I think it can be made a classmethod in both cases to reduce the divergence. I'd like to investigate to see if there was a reason for the divergence.
Today I noticed that in CPython, the find_distributions is a classmethod:
importlib_metadata/Lib/importlib/metadata/__init__.py
Lines 774 to 777 in a573be9
But it's an instance method in importlib_metadata. I think it can be made a classmethod in both cases to reduce the divergence. I'd like to investigate to see if there was a reason for the divergence.