importlib_resources
importlib_resources copied to clipboard
A better error message from importlib.resources.files() when module spec is None
Copied from a PR on the CPython repository's importlib/resources.
The original PR is https://github.com/python/cpython/pull/138531