close
Skip to content

MetadataPathFinder has find_distributions as a classmethod in CPython #484

Description

@jaraco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions