Skip to content

Update importlib.abc hierarchy#31113

Merged
JelleZijlstra merged 2 commits into
python:mainfrom
davidgilbertson:patch-5
May 2, 2022
Merged

Update importlib.abc hierarchy#31113
JelleZijlstra merged 2 commits into
python:mainfrom
davidgilbertson:patch-5

Conversation

@davidgilbertson

Copy link
Copy Markdown
Contributor

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 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
@miss-islington

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label May 2, 2022
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.

6 participants