summaryrefslogtreecommitdiff
path: root/doc/data/messages/n/not-async-context-manager/good.py
blob: 8d527e85fca7d41f99e88da681c25d4917060c96 (plain)
1
2
3
4
5
6
7
8
9
10
11
class AsyncContextManager:
    def __aenter__(self):
        pass

    def __aexit__(self, *exc):
        pass


async def foo():
    async with AsyncContextManager():
        pass