]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497)
authorAMIR <31338382+amiremohamadi@users.noreply.github.com>
Sun, 8 Dec 2019 11:35:59 +0000 (15:05 +0330)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 Dec 2019 11:35:59 +0000 (03:35 -0800)
commit28c91631c24e53713ad0e8a2bbae716373f5e53d
treea870b24a5128a4424e85cd2e4ad6693417e1c0c4
parent00ada2c1d57c5b8b468bad32ff24fa14113ae5c7
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
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