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

Update importlib.abc hierarchy #31113

Merged
merged 2 commits into from May 2, 2022
Merged

Conversation

davidgilbertson
Copy link
Contributor

@davidgilbertson davidgilbertson commented Feb 3, 2022

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.

Fixed some inconsistencies in the text about relationships
hugovk
hugovk approved these changes Feb 10, 2022
Copy link
Member

@hugovk hugovk left a comment

Thanks for the PR, looks good.

The diagram currently looks like:

image

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:

image

@JelleZijlstra JelleZijlstra self-assigned this May 2, 2022
@JelleZijlstra JelleZijlstra merged commit 5f45a9d into python:main May 2, 2022
13 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented May 2, 2022

Thanks @davidgilbertson for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 2, 2022
Fixed some inconsistencies in the text about relationships
(cherry picked from commit 5f45a9d)

Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
@bedevere-bot
Copy link

bedevere-bot commented May 2, 2022

GH-92189 is a backport of this pull request to the 3.10 branch.

miss-islington added a commit that referenced this pull request May 2, 2022
Fixed some inconsistencies in the text about relationships
(cherry picked from commit 5f45a9d)

Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants