summaryrefslogtreecommitdiffstats
path: root/Lib/typing.py
diff options
context:
space:
mode:
authorSebastian Rittau <srittau@rittau.biz>2025-03-06 15:36:19 (GMT)
committerGitHub <noreply@github.com>2025-03-06 15:36:19 (GMT)
commitc6dd2348ca61436fc1444ecc0343cb24932f6fa7 (patch)
tree549d12e443ddcdd38425e26ac8896b8ab5780006 /Lib/typing.py
parent9c691500f9412ecd8f6221c20984dc7a55a8a9e8 (diff)
downloadcpython-c6dd2348ca61436fc1444ecc0343cb24932f6fa7.zip
cpython-c6dd2348ca61436fc1444ecc0343cb24932f6fa7.tar.gz
cpython-c6dd2348ca61436fc1444ecc0343cb24932f6fa7.tar.bz2
gh-127647: Add typing.Reader and Writer protocols (#127648)
Diffstat (limited to 'Lib/typing.py')
-rw-r--r--Lib/typing.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index 1dd1154..9621155 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -1876,6 +1876,7 @@ _PROTO_ALLOWLIST = {
'Reversible', 'Buffer',
],
'contextlib': ['AbstractContextManager', 'AbstractAsyncContextManager'],
+ 'io': ['Reader', 'Writer'],
'os': ['PathLike'],
}