Skip to content

Commit b57dbe5

Browse files
authored
bpo-38415: Remove redundant AsyncContextDecorator.__call__ override from _AsyncGeneratorContextManager (GH-30233)
1 parent e466faa commit b57dbe5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Lib/contextlib.py

-8
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,6 @@ class _AsyncGeneratorContextManager(
193193
):
194194
"""Helper for @asynccontextmanager decorator."""
195195

196-
def __call__(self, func):
197-
@wraps(func)
198-
async def inner(*args, **kwds):
199-
async with self.__class__(self.func, self.args, self.kwds):
200-
return await func(*args, **kwds)
201-
202-
return inner
203-
204196
async def __aenter__(self):
205197
# do not keep args and kwds alive unnecessarily
206198
# they are only needed for recreation, which is not possible anymore

0 commit comments

Comments
 (0)