close
Skip to content

find_distributions documentation issues #122

Description

@jaraco

In GitLab by @mhsmith on Jun 1, 2020, 22:33

The section "Extending the search algorithm" says that find_distributions must return an iterable. However, the current implementation actually requires an iteratOR, because it calls next here. So if someone writes a find_distributions which returns a list, this will fail.

Separately, the DistributionFinder.Context .name attribute is documented as indicating "names to match" (plural). However, it's actually just a single string.

Finally, it says that DistributionFinder.Context "may supply other relevant context". This is so vague as to be useless. If it's supposed to mean "we may add other properties in the future", isn't that true of any API?

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