diff options
author | AMIR <31338382+amiremohamadi@users.noreply.github.com> | 2019-12-08 11:35:59 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-08 11:35:59 (GMT) |
commit | 28c91631c24e53713ad0e8a2bbae716373f5e53d (patch) | |
tree | a870b24a5128a4424e85cd2e4ad6693417e1c0c4 /Misc/NEWS.d/next/Library | |
parent | 00ada2c1d57c5b8b468bad32ff24fa14113ae5c7 (diff) | |
download | cpython-28c91631c24e53713ad0e8a2bbae716373f5e53d.zip cpython-28c91631c24e53713ad0e8a2bbae716373f5e53d.tar.gz cpython-28c91631c24e53713ad0e8a2bbae716373f5e53d.tar.bz2 |
bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497)
now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None.
https://bugs.python.org/issue38979
Automerge-Triggered-By: @asvetlov
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-12-07-16-32-42.bpo-38979.q0sIHy.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-12-07-16-32-42.bpo-38979.q0sIHy.rst b/Misc/NEWS.d/next/Library/2019-12-07-16-32-42.bpo-38979.q0sIHy.rst new file mode 100644 index 0000000..6a91a12 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-12-07-16-32-42.bpo-38979.q0sIHy.rst @@ -0,0 +1 @@ +Return class from ``ContextVar.__class_getitem__`` to simplify subclassing. |