[New-bugs-announce] [issue41543] contextlib.nullcontext doesn't work with async context managers
Tom Gringauz
report at bugs.python.org
Thu Aug 13 16:58:48 EDT 2020
New submission from Tom Gringauz <tomgrin10 at gmail.com>:
`contextlib.nullcontext` cannot be used with async conetext managers, because it implements only `__enter__` and `__exit__`, and doesn't implement `__aenter__` and `__aexit__`.
----------
components: Library (Lib), asyncio
messages: 375346
nosy: asvetlov, tomgrin10, yselivanov
priority: normal
severity: normal
status: open
title: contextlib.nullcontext doesn't work with async context managers
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41543>
_______________________________________
More information about the New-bugs-announce
mailing list