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

    def __exit__(self, *exc):
        pass


async def foo():
    async with ContextManager():  # [not-async-context-manager]
        pass