mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +00:00
gh-126699: allow AsyncIterator to be used as a base for Protocols (#126702)
This commit is contained in:
parent
0052a8c638
commit
feb3e0b19c
3 changed files with 6 additions and 1 deletions
|
@ -1940,7 +1940,8 @@ def _allow_reckless_class_checks(depth=2):
|
|||
_PROTO_ALLOWLIST = {
|
||||
'collections.abc': [
|
||||
'Callable', 'Awaitable', 'Iterable', 'Iterator', 'AsyncIterable',
|
||||
'Hashable', 'Sized', 'Container', 'Collection', 'Reversible', 'Buffer',
|
||||
'AsyncIterator', 'Hashable', 'Sized', 'Container', 'Collection',
|
||||
'Reversible', 'Buffer',
|
||||
],
|
||||
'contextlib': ['AbstractContextManager', 'AbstractAsyncContextManager'],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue