]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 Dec 2019 11:53:07 +0000 (03:53 -0800)
committerGitHub <noreply@github.com>
Sun, 8 Dec 2019 11:53:07 +0000 (03:53 -0800)
commit9baa870c27b54c26f9dd292c26936b70bdb64a06
tree2a69d29f82306f2142c80bd538bb397cd955329e
parenta197f8aa7493e66bc54c3db8f796d00cef1c3042
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>
Lib/test/test_context.py
Misc/NEWS.d/next/Library/2019-12-07-16-32-42.bpo-38979.q0sIHy.rst [new file with mode: 0644]
Python/context.c