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
Update importlib.abc hierarchy #31113
Conversation
Fixed some inconsistencies in the text about relationships
Thanks for the PR, looks good.
The diagram currently looks like:
And the text says for both MetaPathFinder
and PathEntryFinder
:
Changed in version 3.10: No longer a subclass of
Finder
.
https://docs.python.org/3/library/importlib.html
And code agrees:
class Finder(metaclass=abc.ABCMeta):
...
class MetaPathFinder(metaclass=abc.ABCMeta):
...
class PathEntryFinder(metaclass=abc.ABCMeta):
https://github.com/python/cpython/blob/1a6411f5738895fa48d35a93435f7c7b6c17bdb9/Lib/importlib/abc.py
So it makes sense to update the digram to show they're no longer subclasses of something about to be removed.
Here's how it looks in the PR:
Thanks @davidgilbertson for the PR, and @JelleZijlstra for merging it |
Fixed some inconsistencies in the text about relationships (cherry picked from commit 5f45a9d) Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
GH-92189 is a backport of this pull request to the 3.10 branch. |
Fixed some inconsistencies in the text about relationships (cherry picked from commit 5f45a9d) Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
Fixed some inconsistencies in the text about relationships.
I know nothing about the implementation, I'm just aligning the page with itself; apologies if this is not right.