Skip to content

Make importlib_metadata._meta.SimplePath public #494

@matthewhughes934

Description

@matthewhughes934

I see this class is documented https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata._meta.SimplePath but the fact it is under the ._meta package, which looks private at a glance, makes me wonder: is is supported for me to access this, is its API as stable as any other part of the package? Additionally (if the answer is yes): could this class just be re-exported by importlib_metadata to avoid this need for access to ._meta?

My use case is: I have a class that sub-classes Distribution and need to annotate the return value for locate_file which should be one of these SimplePaths, and asking here because this appears to be the origin of the class, with it being added upstream from here: python/cpython@667294d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions