We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc3ae1c commit ad71cc9Copy full SHA for ad71cc9
asyncstdlib/contextlib.py
@@ -332,7 +332,7 @@ def push(self, exit: SE) -> SE:
332
if hasattr(exit, "__aexit__"):
333
aexit = exit.__aexit__ # type: ignore
334
elif hasattr(exit, "__exit__"):
335
- aexit = exit.__aexit__ # type: ignore
+ aexit = awaitify(exit.__exit__) # type: ignore
336
elif callable(exit):
337
aexit = awaitify(exit) # type: ignore
338
else:
0 commit comments