Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept types.ModuleType as a distribution identifier #511

Open
FFY00 opened this issue Jan 26, 2025 · 0 comments
Open

Accept types.ModuleType as a distribution identifier #511

FFY00 opened this issue Jan 26, 2025 · 0 comments
Labels
enhancement New feature or request feature

Comments

@FFY00
Copy link
Member

FFY00 commented Jan 26, 2025

I have recently ran into the issue where the importable module did not come from the distribution metadata found by importlib.metadata. This was because the distribution modules were shadowed in sys.path, which can happen often in test environments.

It would be nice if we could pass a module to importlib.metadata.distribution(), and have it find the distribution where that module originates from, if any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature
Projects
None yet
Development

No branches or pull requests

1 participant