mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-29922: Improve error messages in 'async with' (GH-6352)
when __aenter__() or __aexit__() return non-awaitable object.
This commit is contained in:
parent
55966f3a0d
commit
a68f2f0578
3 changed files with 36 additions and 4 deletions
|
@ -0,0 +1,2 @@
|
|||
Improved error messages in 'async with' when ``__aenter__()`` or
|
||||
``__aexit__()`` return non-awaitable object.
|
Loading…
Add table
Add a link
Reference in a new issue