You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement __subclasshook__() for Finders and Loaders in importlib.abc #63062
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2013-08-28.03:10:36.721>labels= ['easy', 'type-feature', 'library']
title='Implement __subclasshook__() for Finders and Loaders in importlib.abc'updated_at=<Date2020-03-06.20:29:42.464>user='https://github.com/ericsnowcurrently'
It would be helpful to have __subclasshook__() implemented on the finders and loaders in importlib.abc, following the approach taken by ABCs in collections.abc. This came up relative to PEP-431, but would be generally useful (if only to a limited audience <wink>).
@ericsnowcurrently I opened a PR by reading your patch. Since the patch is a bit old, I couldn't add the __subclasshook__ for some classs because I got the deprecation warnings.
Activity
ericsnowcurrently commentedon Aug 28, 2013
It would be helpful to have __subclasshook__() implemented on the finders and loaders in importlib.abc, following the approach taken by ABCs in collections.abc. This came up relative to PEP-431, but would be generally useful (if only to a limited audience <wink>).
ericsnowcurrently commentedon Oct 5, 2013
Here's a patch.
furkanonder commentedon Mar 17, 2023
@ericsnowcurrently I opened a PR by reading your patch. Since the patch is a bit old, I couldn't add the
__subclasshook__for some classs because I got the deprecation warnings.ericsnowcurrently commentedon Mar 17, 2023
Thanks for doing that! I'll take a look when I get a chance.
brettcannon commentedon Mar 22, 2023
Is this worth doing today, or would it be better to do #82963 ?