test: type dummy async client exit hook

This commit is contained in:
Shroominic
2026-03-13 18:51:30 +08:00
parent 93a368b1a2
commit e31b45fa9e
+7 -1
View File
@@ -1,3 +1,4 @@
from types import TracebackType
from unittest.mock import Mock
import httpx
@@ -15,7 +16,12 @@ class DummyAsyncClient:
async def __aenter__(self) -> "DummyAsyncClient":
return self
async def __aexit__(self, exc_type, exc, tb) -> bool:
async def __aexit__(
self,
exc_type: type[BaseException] | None,
exc: BaseException | None,
tb: TracebackType | None,
) -> bool:
return False
async def get(