Closed jaraco closed 4 months ago
It looks like the classmethod goes back to 83b48ec85f27b65b01969bfc453f30308ca9d138, suggesting the divergence happened as part of the integration effort with CPython, so probably could have been made a classmethod in importlib_metadata as well.
Today I noticed that in CPython, the find_distributions is a classmethod:
https://github.com/python/importlib_metadata/blob/a573be960509669c8822ead4aef8b450877cc21b/Lib/importlib/metadata/__init__.py#L774-L777
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.