[New-bugs-announce] [issue38979] ContextVar[str] should return ContextVar class, not None

Andrew Svetlov 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
messages: 357850
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
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>
<https://bugs.python.org/issue38979>
_______________________________________


More information about the New-bugs-announce mailing list