diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-08 04:49:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-08 04:49:07 -0800 |
commit | 960fca1a5887a277fd6031cf4c4b6fb31b08ebf5 (patch) | |
tree | 58a3cba812fcbed35e66ca2e3b50ac13ee81b427 /Misc | |
parent | 9d3cacd5901f8fbbc4f8b78fc35abad01a0e6546 (diff) | |
download | cpython-git-960fca1a5887a277fd6031cf4c4b6fb31b08ebf5.tar.gz |
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
(cherry picked from commit 28c91631c24e53713ad0e8a2bbae716373f5e53d)
Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
Diffstat (limited to 'Misc')
-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 0000000000..6a91a12e49 --- /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. |