]> 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 12:49:07 +0000 (04:49 -0800)
committerGitHub <noreply@github.com>
Sun, 8 Dec 2019 12:49:07 +0000 (04:49 -0800)
commit960fca1a5887a277fd6031cf4c4b6fb31b08ebf5
tree58a3cba812fcbed35e66ca2e3b50ac13ee81b427
parent9d3cacd5901f8fbbc4f8b78fc35abad01a0e6546
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