[New-bugs-announce] [issue38979] ContextVar[str] should return ContextVar class, not None
report at bugs.python.org
Thu Dec 5 08:04:18 EST 2019
New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:
The issue is minor, I suspect nobody wants to derive from ContextVar class.
The generic implementation for __class_getitem__ is returning unmodified self argument. Yuri, is there a reason to behave differently in the case of ContextVar?
If no, we can mark the issue as easy(C) and wait for a volunteer, the fix seems trivial.
components: Extension Modules
nosy: asvetlov, yselivanov
title: ContextVar[str] should return ContextVar class, not None
versions: Python 3.7, Python 3.8, Python 3.9
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce