diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2023-05-24 08:24:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 08:24:53 (GMT) |
commit | c0ab7d401c736c37bf4462eef7c7d69fef8fab93 (patch) | |
tree | 99259a8ab3c26c47995995fcb82ddbdba1948f3d /Lib/typing.py | |
parent | 4b56e56c495de58425ae3db5f4d8183127ee990b (diff) | |
download | cpython-c0ab7d401c736c37bf4462eef7c7d69fef8fab93.zip cpython-c0ab7d401c736c37bf4462eef7c7d69fef8fab93.tar.gz cpython-c0ab7d401c736c37bf4462eef7c7d69fef8fab93.tar.bz2 |
gh-104797: Allow Protocols to inherit from collections.abc.Buffer (#104827)
Diffstat (limited to 'Lib/typing.py')
-rw-r--r-- | Lib/typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index 95dbc0b..b32ff0c 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1740,7 +1740,7 @@ def _allow_reckless_class_checks(depth=3): _PROTO_ALLOWLIST = { 'collections.abc': [ 'Callable', 'Awaitable', 'Iterable', 'Iterator', 'AsyncIterable', - 'Hashable', 'Sized', 'Container', 'Collection', 'Reversible', + 'Hashable', 'Sized', 'Container', 'Collection', 'Reversible', 'Buffer', ], 'contextlib': ['AbstractContextManager', 'AbstractAsyncContextManager'], } |