(self)
| 31 | |
| 32 | class _ContextManagerMixin: |
| 33 | async def __aenter__(self) -> None: |
| 34 | await self.acquire() # type: ignore[attr-defined] |
| 35 | # We have no use for the "as ..." clause in the with |
| 36 | # statement for locks. |
| 37 | return |
| 38 | |
| 39 | async def __aexit__(self, exc_type: Any, exc: Any, tb: Any) -> None: |
| 40 | self.release() # type: ignore[attr-defined] |